There are 48 students in class A, of which (1/2) are girls; there are 45 students in class B, of which (1/3) are girls, so how many boys are there in the two classes?
甲班有学生48人，其中(1/2)是女生；乙班有学生45人，其中(1/3)是女生，那么两班的男生共有多少人．
<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">48 * (1/2)</gadget>
<output>24</output>

<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

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

<gadget id="calculator">45 * (2/3)</gadget>
<output>30</output>

<gadget id="calculator">24 + 30</gadget>
<output>54</output>

<result>54</result>