A sales manager noticed that the number of units sold for two T-shirt styles, style A and style B, was the same during June and July. In June, total sales were $2779 for the two styles, with A selling for $15.95 per shirt and B selling for $22.95 per shirt.
In July, total sales for the two styles were $2385.10, with A selling at the same price and B selling at a discount of 22% off the June price. How many T-shirts of each style were sold in June and July combined?