There are some apples and pears. The number of apples is 4 times that of pears and there are 2 less. If 5 apples and 2 pears are eaten each time, when the pears are eaten, there are still 40 apples left. How many pears are there? ?
有一些苹果和梨，苹果的个数是梨的4倍还少2个，如果每次吃掉5个苹果和2个梨，当梨吃完时，苹果还剩下40个，梨有多少个？
<gadget id="calculator">2 + 40</gadget>
<output>42</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">5 * (1/2)</gadget>
<output>5/2 = around 2.5</output>

<gadget id="calculator">4 - (5/2)</gadget>
<output>3/2 = around 1.5</output>

<gadget id="calculator">42 / (3/2)</gadget>
<output>28</output>

<result>28</result>