On Thursday morning a bakery owner prepared by baking several pies and decorating cupcakes. She spent 90 minutes baking the pies and an average of 1.2 minutes decorating each cupcake. On Friday, she spent 58 minutes baking pies, and decorating the same number of cupcakes at an average of 1.7 minutes per cupcake. If she spent the same amount of time preparing on Thursday as she did on Friday, how many cupcakes did she decorate each day?