whatever% of anything is just (whatever/100) * anything.
now, we know their food cost is 25.50, and the taxman wants 8% of that, how much is 8% of 25.50?
well, is just (8/100) * 25.50.
how much is their bill? well, is 25.50 plus the tax, so just add it to the 25.50.