wooden box contains several white and yellow table tennis balls. Xiao Ming takes out 5 yellow balls and 3 white balls at a time. After doing this operation N times, the white balls are finished and there are 8 yellow balls left; After three times, the yellow balls are all taken, and there are 24 white balls left. It turns out how many table tennis balls are there in the wooden box.
一只木箱内有白色乒乓球和黄色乒乓球若干个．小明一次取出5个黄球、3个白球，这样操作N次后，白球拿完了，黄球还剩8个；如果换一种取法：每次取出7个黄球、3个白球，这样操作M次后，黄球拿完了，白球还剩24个．原来木箱内共有乒乓球多少个．
<gadget id="calculator">3 / 5</gadget>
<output>3/5 = around 0.6</output>

<gadget id="calculator">(3/5) * 8</gadget>
<output>24/5 = around 4.8</output>

<gadget id="calculator">24 + (24/5)</gadget>
<output>144/5 = around 28.8</output>

<gadget id="calculator">3 / 7</gadget>
<output>3/7 = around 0.428571</output>

<gadget id="calculator">(3/5) - (3/7)</gadget>
<output>6/35 = around 0.171429</output>

<gadget id="calculator">(144/5) / (6/35)</gadget>
<output>168</output>

<gadget id="calculator">168 + 96</gadget>
<output>264</output>

<result>264</result>