Xiao Ming bought a notebook for 5 yuan, but later felt that it was not suitable, so he took this notebook and added 3 yuan to exchange it for an 8 yuan notebook. May I ask how much he spent in total?
小明用5元钱买了一本子，后来觉得不合适，又拿着这个本子加三元钱换了一个8元的本子，请问他一共花了多少钱．
<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<result>8</result>