Mary bought some used CDs for $5 each. She spent a total of $30.

I presume you want to know how many CDs were bought.

How about 30/5 = 6

When you are given little data, don't expect complicated formulas to be involved.