Answer:
Part A)
Our system of equation is:

Where x represent the amount of cheese wafers bought and y represent the amount of chocolate wafers bought.
Part B)
Mike and his friends bought five cheese wafers and 15 chocolate wafers.
Explanation:
Let cheese wafers be represented by x and let chocolate wafers be represented by y.
Part A)
They spent a total of $25. Since each cheese wafer cost $2 and each chocolate wafer cost $1, we can write that:

Or, simply:

They also purchased a total of 20 packets of wafers. Hence:

Our system of equation is:

Where x represent the amount of cheese wafers bought and y represent the amount of chocolate wafers bought.
Part B)
Since both equations have the same coefficient for y, we can use elimination. First, multiply the second equation by negative one:

Add it to the first equation:

Simplify:

So, five cheese wafers were bought.
Using the second equation again, we can see that:

So, 15 chocolate wafers were bought.
Notes:
If we wanted to solve this using substitution, we can subtract x (or y, doesn't really matter) from both sides from either equation. Using the second equation, this yields:

Substitute this into the first:

Simplify:

And we will acquire the same answer:
