Step-by-step explanation:
Let's call x the number of boxes of candy that Sean sold and y the number of boxes of candy that Marta sold.
Then, Sean sold 4 more boxes of candy than Marta, so we can write the following equation:
x = 4 + y
Additionally, the sum of the boxes they sold was 22, so:
x + y = 22
Now, we can replace the first equation on the second one as:
x + y = 22
(4 + y) + y = 22
So, solving for y, we get:
4 + y + y = 22
4 + 2y = 22
4 + 2y - 4 = 22 - 4
2y = 18
2y/2 = 18/2
y = 9
Finall