Imagine a highly economic country ‘W’ has made a rule on income tax in the following way:

a. If a person has an income up to 2200$, he is taxed at rate of 10% of his income.

b. If he has an income above 2200$ and up to 8945$, he is taxed at rate of 18.5% and

c. If he has an income more than 8945$, he is taxed at rate of 30%.

(Note that every penny people earn is taxable and comes in any of the three slabs and is properly and stringently justifiable).

Based on the above scenario, answer the following questions:

(i) Represent the above rule that country W has made as a piecewise function mathematically using the symbol ≤ or any other relevant symbol.

(ii) Take any income that comes in each slab from the country W and calculate the tax for each segment.