Maria has a pen and a pencil. She bought the pen for half the price of the pencil. The pencil cost her $8. How much did Maria pay for both the pen and the pencil?
The pen is half the price of the pencil, so it's 8 * 0.5 = $
<gadget id="calculator">8*0.5</gadget>
<output>4</output>
4.
So both the pen and the pencil cost Maria 8 + 4 = $
<gadget id="calculator">8+4</gadget>
<output>12</output>
12.

<result>12</result>