Sid takes $48 with him on a shopping trip to the mall.  He spent some of his money on computer accessories and another $8 on snacks. After these purchases, he only has $4 more than half of his original money left. How much did he spend on computer accessories?
Half of Sid's original money is $48/2 = $
<gadget id="calculator">48/2</gadget>
<output>24</output>
24.
Sid has only $24 + $4 = $
<gadget id="calculator">24+4</gadget>
<output>28</output>
28 left after his purchases.
He had $28 + $8 = $
<gadget id="calculator">28+8</gadget>
<output>36</output>
36 before he spent $8 on snacks.
So, Sid spent $48 - $36 = $
<gadget id="calculator">48-36</gadget>
<output>12</output>
12 on computer accessories.

<result>12</result>