Answer:
In the end Joanne had 55 sweets.
Step-by-step explanation:
Let the number of sweets that Xue Ying had be y and let the number of sweets Joanne had be x.
It is given that Xue Ying had 143 more sweets than Joanne. We can write this information as an equation.
y = x + 143.
It is also given that Joanne gave away 22 of her sweets and after that Xue Ying had 6 times as many more sweets. We can write this as an equation.
y = 6(x - 22) = 6x - 132.
Therefore we can equate the two equations and solve for x.
x + 143 = 6x - 132
5x = 275
∴ x = [tex]\frac{275}{5} = 55[/tex] sweets.
Therefore in the end Joanne had 55 sweets.