Class 4 and Class 1 are going to play in the "Children's Amusement Park". I would like to ask you to help solve the following problems. There are 24 boys and 18 girls in Class 4 and 1. If the tickets cost 2 yuan each, how much will it cost for the whole class to participate?
四1班同学要去"儿童游乐园"玩，想请你帮助解决以下问题．四1班有男生24人，女生18人，如果门票每张2元钱，全班都参加要花多少元？
<gadget id="calculator">24 + 18</gadget>
<output>42</output>

<gadget id="calculator">2 * 42</gadget>
<output>84</output>

<result>84</result>