One coffee and two slices of cake cost 8 dollars in total. Two coffees and 3 slices of cake cost 14 dollars in total. What are the individual prices of one coffee and of one slice of cake?