Hello,
If you want to find the fraction that was spent on taxes, you should put the amount of taxes over the total amount.
You would have 8800/40000.
This fraction can be reduced to 22/100 or 11/50. It could also be written as 22%.
Best of luck,
MrEQ