Two Friends met up for coffee and dessert. Each friend got a medium coffee and two cupcakes, and one friend bought a mug for $12.00. the medium coffee was 3.50. The friend who bought the mug paid for their order. The total was $29.00. What was the price of each cupcake?