Xiao Ming went to the supermarket to buy a pencil case and spent 13.46 yuan, and it cost 2.9 yuan less to buy a pencil than the pencil case. How much did Xiao Ming spend in total?
小明去超市买文具盒用去13.46元，买铅笔比文具盒少用了2.9元．小明一共花了多少钱？
<gadget id="calculator">13.46 - 2.9</gadget>
<output>10.56</output>

<gadget id="calculator">10.56 + 13.46</gadget>
<output>24.02</output>

<result>24.02</result>