Xiaohong and Xiaoming went to Xinhua Bookstore to buy books together. Xiaohong bought a copy of "Story King" and paid 10 yuan, and got back 4.7 yuan. Xiao Ming bought a copy of "Story King" and a copy of "Three Hundred Tang Poems". "Three Hundred Tang Poems" is 11.8 yuan a copy, how much did Xiao Ming spend?
小红和小明一起去新华书店买书．小红买了一本《故事大王》付了10元，找回4.7元．小明买了一本《故事大王》和一本《唐诗三百首》．《唐诗三百首》11.8元一本，小明共花了多少钱？
<gadget id="calculator">10 - 4.7</gadget>
<output>5.3</output>

<gadget id="calculator">5.3 + 11.8</gadget>
<output>17.1</output>

<result>17.1</result>