The Gourmet Bakery sells cooks for $2 each and cupcakes for $4 each. A total of 110 desserts are sold, and the total profit made from
selling cookies and cupcakes is $314. How many cookies and how many cupcakes were sold?