Rick buys 3 CDs and 5 video games. The cost of one video game is $12.00 more than the cost of one CD. If Rick spends $164.00, what is the cost of each CD?