A shop sells school supplies. One notebook is sold at $1.50 each, a pen at $0.25 each, a calculator at $12 each, and a geometry set at $10. Daniel is an engineering student, and he wants to buy five notebooks, two pens, one calculator, and one geometry set. The shop gives a 10% discount on all the purchased items. How much does Daniel have to spend on all the items he wants to buy?
Five notebooks cost $5 x 1.50 = $
<gadget id="calculator">5*1.50</gadget>
<output>7.5</output>
7.50.
Two pens cost 2 x $0.25 = $
<gadget id="calculator">2*0.25</gadget>
<output>0.5</output>
0.50.
The total cost is $7.50 + $0.50 + $12 + $10 =$
<gadget id="calculator">7.5+0.5+12+10</gadget>
<output>30</output>
30.
Thus, total discount is 10/100 x $30 = $
<gadget id="calculator">10/100*30</gadget>
<output>3</output>
3.
Therefore, Daniel has to spend $30 - $3 = $
<gadget id="calculator">30-3</gadget>
<output>27</output>
27 on all the items he wants to buy.

<result>27</result>