Gwen and Max had breakfast at a cafe. Muffins cost $2 each, and fruit cups cost $4 each. Gwen had 2 muffins and 1 fruit cup. Max had 2 muffins and 1 fruit cup. How much did their breakfast cost?​