Let's suppose the number of large candies sold is x, and the number of small candies sold is y.
Here are your two equations:
x + y = 28
4y + 6x = 144
From the first equation, we get:
x = 28 - y
Plugging that into the second equation, we get:
4y + 6 ( 28 - y ) = 144
All you have to do next is expand 6 ( 28 - y ) , add them ( the two y expressions ) together, and then divide by the constant of y on both sides to get y ( the number of small candies sold )
To get x ( the number of large candies sold ), just plug y into the equation x + y = 28 and isolate the x ( you can do that by subtracting the value of y on both sides ).
I hope this helped! If I made a mistake somewhere please lmk .