Melissa scored w points in each game. She also got x bonus points in each game. How many points did she score in y games?
Let's denote the number of points Melissa scored in one game as P. Then we have:

P = w + x

Now we need to calculate the number of points she scored in y games. This is equal to y multiplied by P:

yP = y(w + x)

We can further simplify this by multiplying out the brackets:

yP = yw + yx