Xiao Ming bought 5 pencils and 7 notebooks in the supermarket. Pencils are 0.3 yuan each, and notebooks are 0.5 yuan each. How much is the total cost?
小明在超市买了5支铅笔和7本笔记本．铅笔每支0.3元，笔记本每本0.5元，一共需要多少元？
<gadget id="calculator">0.3 * 5</gadget>
<output>1.5</output>

<gadget id="calculator">0.5 * 7</gadget>
<output>3.5</output>

<gadget id="calculator">1.5 + 3.5</gadget>
<output>5</output>

<result>5</result>