40=6.95c+5.25
The $40 is what you want it all to equal, so that goes to one side by itself.
The CDs are 6.95 each, so they get a variable to show that.
The 5.95 is added to that, showing that it's only charged once.
Then, all you have to do is solve for c, which is the number of CD's you can buy.