A shopping mall purchased a batch of new-style color TV sets, sold half of the total number on the first day and 4 sets less, and sold the remaining half more than 4 sets on the second day, leaving 24 sets at this time. How many such color TVs did the mall buy in total?
某商场购进一批新式彩电，第一天卖出总数的一半少4台，第二天卖出余下的一半多4台，这时还余下24台．商场一共购进多少台这样的彩电？
<gadget id="calculator">24 + 4</gadget>
<output>28</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">1 - (1/2)</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">28 / (1/2)</gadget>
<output>56</output>

<gadget id="calculator">56 - 4</gadget>
<output>52</output>

<gadget id="calculator">52 / (1/2)</gadget>
<output>104</output>

<result>104</result>