Write an equation to solve the following problem.

During the season, two apple trees and three pear trees produced a total of 126 pieces of fruit. Each apple tree produced the same number of apples, and each pear tree produced two more pieces of fruit than either apple tree. How many pieces of apples did each Ray's apple trees produce in one season? Complete the table below and answer in a complete sentence.

Then solve the equation.

There is no "table below".

Let x be the number of apples per apple tree and y be the number of pears per pear tree.
y = x + 2
2x +3y = 126

2x + 3(x+2) = 126
5x = 120
x = 24
y = 26

To solve this problem, we can set up an equation.

Let's assume that each apple tree produced x pieces of fruit.

Since each pear tree produced two more pieces of fruit than any apple tree, each pear tree produced (x +2) pieces of fruit.

We are given that there are two apple trees and three pear trees, and the total number of pieces of fruit is 126.

The equation can be set up as follows:

2x + 3(x + 2) = 126

Now, let's solve the equation:

2x + 3x + 6 = 126

Combining like terms:

5x + 6 = 126

Subtracting 6 from both sides:

5x = 120

Dividing both sides by 5:

x = 24

Therefore, each apple tree produced 24 pieces of fruit in one season.