A bakery sold 328 cakes on Monday. It sold 178 more cakes on Monday than on Tuesday. Each cake was sold for $19. How much money did the bakery receive from selling the cakes?