Joe spent 1/4 of his money at the food court. He spent 2/3 of what was left on ride tickets. He ended with $10 left in his pocket. How much did he start with?

If he started with $x

amount left after foodcourt = (3/4)x
amount left after ride = (1/3)(3/4)x = (1/4)x

so (1/4)x = 10
x = $40