John's hair grows 1.5 inches every month.  Every time it gets to 9 inches long he cuts it down to 6 inches.  A haircut costs $45 and he gives a 20% tip.  How much does he spend on haircuts a year?
He cuts off 9-6=
<gadget id="calculator">9-6</gadget>
<output>3</output>
3 inches when he gets a haircut.
That means he needs to cut it every 3/1.5=
<gadget id="calculator">3/1.5</gadget>
<output>2</output>
2 months.
So he gets 12/2=
<gadget id="calculator">12/2</gadget>
<output>6</output>
6 haircuts a year.
He gives a 45*.2=$
<gadget id="calculator">45*.2</gadget>
<output>9</output>
9 tip.
So that means each hair cut cost 45+9=$
<gadget id="calculator">45+9</gadget>
<output>54</output>
54.
So he pays 54*6=$
<gadget id="calculator">54*6</gadget>
<output>324</output>
324 a year.

<result>324</result>