hi, please help with these questions. i’ve attempted them but i am not too sure if they’re correct. thank you.

Let the number of sweets Mrs. Chua has be x
And the number of children be y
So,
x-8y=3 ------- 1️⃣
x-9y= -2 ------- 2️⃣
Change the signs of equation 2️⃣
x-8y=3
+x-9y=-2
- + +
__________
Substitute equation 3️⃣ in equation 1️⃣ :
[tex] \sf \: x - 8y = 3[/tex]
[tex] \sf \: x - 8 \times 5 = 3[/tex]
[tex] \sf \: x - 40 = 3[/tex]
[tex] \sf \: x = 3 + 40[/tex]
[tex] \tt \: x = 43[/tex]
Therefore, The total number of children i.e. y is 5 and the total number of sweets Mrs. Chua i.e. x is 43...