Allen and Stephan went shopping for Mother's day. Stephan spent $30 for 4 roses and 2 CDs. Allen bought 2 roses and 3 CDs for $40. What was the cost of a rose and a CD?