In a certain town, there are two bakeries that sell pastries. Bakery A sells a particular type of pastry for $2 each, and Bakery B sells the same pastry for $3 each. Last month, Bakery A sold 600 pastries, while Bakery B sold 800 pastries. In addition, Bakery A provided a 10% discount on all pastries sold, while Bakery B offered a 5% discount.
What was the total revenue generated by both bakeries from the pastry sales last month after applying the discounts?