The ratio of the number of people in teams A and B is 5:2. Team A is transferred (1/8) to team B, and 14 people are transferred from team A. At this time, the numbers of the two teams are equal. How many people are there in team A? (Solve using formulas)
甲乙两队人数比是5：2，从甲队调走(1/8)到乙队，再从甲队调走14人，这时两队人数相等，甲队原有多少人？(用算式方法解答)
<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">3 / 8</gadget>
<output>3/8 = around 0.375</output>

<gadget id="calculator">(5/8) - (3/8)</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">14 / (1/4)</gadget>
<output>56</output>

<gadget id="calculator">5 + 2</gadget>
<output>7</output>

<gadget id="calculator">5 / 7</gadget>
<output>5/7 = around 0.714286</output>

<gadget id="calculator">56 * (5/7)</gadget>
<output>40</output>

<result>40</result>