There are 300 white and red balls in a carton of 100. There are 3 balls in each carton, among which there are 27 cartons with 1 white ball, 42 cartons with 2 or 3 red balls, and 3 white balls and 3 red balls in the carton The quantity is the same. So, how many white balls are there in total?
有白球和红球共300个，纸盒100个．每个纸盒里都放3个球，其中放1个白球的纸盒有27个，放2个或3个红球的纸盒共有42个，放3个白球和3个红球的纸盒数量相同．那么，白球共有多少个．
<gadget id="calculator">42 - 27</gadget>
<output>15</output>

<gadget id="calculator">15 * 3</gadget>
<output>45</output>

<gadget id="calculator">100 - 15 - 15 - 27</gadget>
<output>43</output>

<gadget id="calculator">43 * 2</gadget>
<output>86</output>

<gadget id="calculator">45 + 86 + 27</gadget>
<output>158</output>

<result>158</result>