The box contains the same number of table tennis balls and badminton balls. Take out 10 table tennis balls and 6 badminton balls each time. After several times, the table tennis balls are gone and there are 12 badminton balls left. How many times have you taken out in total? How many table tennis balls and badminton balls are there?
箱子里装有同样数量的乒乓球和羽毛球．每次取出10个乒乓球和6个羽毛球，取了几次以后，乒乓球没有了，羽毛球还剩12个，一共取了几次？原来乒乓球和羽毛球各有多少个？
<gadget id="calculator">10 - 6</gadget>
<output>4</output>

<gadget id="calculator">12 / 4</gadget>
<output>3</output>

<gadget id="calculator">3 * 10</gadget>
<output>30</output>

<result>30</result>