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 $184. Determine the total number of CDs and videos sold.