Xiaopang and Xiaoya are counting their storybooks. Now I only know that Xiaopang gave Xiaoya 8 copies as much as Xiaoya; if Xiaoya gave Xiaopang 4 copies, then the number of Xiaopang's copies is three times that of Xiaoya. How many books does Xiaopang have?
小胖和小亚两人在数他们的故事书．现在只知道小胖给小亚8本就和小亚一样多；如果是小亚给小胖4本的话，那么小胖的本数就是小亚的3倍．小胖原有书多少本．
<gadget id="calculator">8 + 8 + 4 + 4</gadget>
<output>24</output>

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">24 / 2</gadget>
<output>12</output>

<gadget id="calculator">12 * 3</gadget>
<output>36</output>

<gadget id="calculator">36 - 4</gadget>
<output>32</output>

<result>32</result>