b= the number of books
m=the number of movies
63=12b+15m This means that the total amount spent equals (the price of each book times the number of books bought) added to (the price of each movie times the number of movies bought.)
Since there are three more books than movies, we know that b=m+3 because if we buy three more movies, we would have the same number of movies as books. Because b=m+3, we can substitute m+3 for b in our original equation and we get 63=12(m+3)+15m.
We distribute the 12 by multiplying and we get 63=12m+36+15m.
We add the Ms and we get 63=27m+36.
We subtract 36 from both sides of the equation and we get 27=27m,
We divide both sides by 27 to get m by itself and we see that 1=m, or m=1.
If m=1, then b=4 because we were told that there were three more books bought than movies bought.