This expression is correct. It shows the price John pays for the jeans on the left side of the + symbol (30n), and the amount of tax he has to pay on the right side of the symbol (0.08(30n)).
Compound interest is calculated by multiplying the initial principal amount by one plus the annual interest rate raised to the number of compound periods minus one