The physical education teacher bought table tennis and badminton. He first bought badminton and spent a total of 33.5 yuan, and then bought 40 table tennis balls with a unit price of 4 cents. After paying, the salesman got back 0.5 yuan. How much did the teacher pay the salesperson?
体育老师买乒乓球和羽毛球，他先买了羽毛球一共花了33.5元，又买了单价为4角的乒乓球40个，付钱后售货员找回了0.5元，老师付给售货员多少钱？
<gadget id="calculator">20 + 33.5 + 0.5</gadget>
<output>54</output>

<result>54</result>