the taxpayer should pay 6% of his total income if his income amounts to PHP 500,000 and PHP 1,000,000, the taxpayer should pay 8% of the total income. If the income is PHP 1,000,000 or more, he should pay 9.5% of the total income. Express the tax as a function of x for any PHP x income.

Please help me and kindly put the solution too. Thank you very much :)