Answer:
Step-by-step explanation:
Let's say that [tex]n[/tex] is the total number of lollipops in the bag, which Matt won.
So, if Matt gave 21 lollipops to his friends, and he kept with 7 lollipops, that means there were 28 lollipops in the bag.
If we represent this as an equation, would be:
[tex]n=F+M[/tex]
Where [tex]F[/tex] is friend's lollipops, and [tex]M[/tex] is Matt's lollipops.
Replacing values we have:
[tex]n=21+7=28[/tex]
Therefore, in the bag were 28 lollipops in total.