To solve the question we have to write two different equations. I am going to do this step-by-step. Let x be the price of the magazine and y the price of the pizza. Thus:
The equation is:
The next part is:
The equation is:
To find the prices we can substitute the second equation on the first one:
Thus:
Hence the price of the pizza will be $6.5 and the price of the magazine will be $3.25.