A used book store also started selling used CDs and books. In the first week, the store sold a combination of 50 CDs and books. They charged $5 per CD and $3 per book and the total sales were $170. Write a system of equations. Determine the number of CDs and the number of books sold.