In the orchard contracted by Xiaoming’s family, the ratio of apricot trees to apple trees is 3:4. It is known that there are 140 fewer apricot trees than apple trees. How many apple trees and apricot trees are there in the orchard?
小明家承包的果园中，杏树与苹果树的比为3：4，已知杏树比苹果树少140棵，果园里一共有多少棵苹果树和杏树？
<gadget id="calculator">4 - 3</gadget>
<output>1</output>

<gadget id="calculator">140 / 1</gadget>
<output>140</output>

<gadget id="calculator">4 + 3</gadget>
<output>7</output>

<gadget id="calculator">140 * 7</gadget>
<output>980</output>

<result>980</result>