Write and simplify the equation you would use to solve the problem below.

You spend $77 shopping. You buy some shirts at $12 each, and spend $5 on food. How many shirts did you buy?