The Chicago Cubs scored x home runs in the third inning, 1 home run in the fifth inning, and 2 more home runs in the eighth inning. So the total number of home runs they scored is x + 1 + 2 = x + 3.
The Cardinals scored 1 home run in the second inning and 1 home run in the fifth inning. So the total number of home runs they scored is 1 + 1 = 2.
We are given that the Chicago Cubs scored 3 more home runs than the Cardinals, so we can write: x + 3 - 2 = 3.
Simplifying the left side, we get: x + 1 = 3.
Subtracting 1 from both sides, we get: x = 2.
The value of x is 2.
#### 2
The answer is: 2
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Baseball season opened up with the Chicago Cubs at home at Wrigley Field. They scored x home runs in the third inning, 1 home run in the fifth inning and 2 more home runs in the eighth inning. Their opponents, the Cardinals, scored 1 home run in the second inning and 1 home run in the fifth inning. How many more home runs did the Chicago Cubs score than the Cardinals in the game?
If we know the answer to the above question is 3, what is the value of unknown variable x?

### Answer:
