Xiaohong and Xiaoya brought the same money to buy the same kind of math workbooks. The two people’s money was spent together. Xiaohong took 12 books, Xiaoya took 8 books, and finally Xiaohong gave Xiaoya another 1.2 yuan. How much did the two of them spend on math homework books?
小红和小丫带同样的钱去买同一种数学作业本，两个人的钱合在一起正好花完，小红拿了12本，小丫拿了8本，最后小红又给了小丫1.2元．他们两个人买数学作业本一共花了多少钱？
<gadget id="calculator">12 - 8</gadget>
<output>4</output>

<gadget id="calculator">4 / 2</gadget>
<output>2</output>

<gadget id="calculator">1.2 / 2</gadget>
<output>0.6</output>

<gadget id="calculator">12 + 8</gadget>
<output>20</output>

<gadget id="calculator">0.6 * 20</gadget>
<output>12</output>

<result>12</result>