Aunt Kendra is pricing cakes for a baby shower she is throwing. She wants one large cake shaped like a duckling and also some cupcakes in pastel colors. Middletown Bakery charges $1 for each cupcake, plus $50 for the large cake. Joy's Sweet Shoppe charges $30 for the large cake and $2 for each cupcake. If Aunt Kendra orders a certain number of cupcakes, the cost will be the same at either bakery. What would the total cost be?