I Don't Know!!!

A used book store also started selling used CDs and videos. In the first week, the store sold a combination of 40 CDs and videos. They charged $4 per CD and $6 per video and the total sales were $180. Determine the total number of CDs and videos sold.
I kind of need to know how to solve. I have more q's like this but if I know how to, I might be able to do it.