A bakery produces three types of pastries: muffins, croissants, and tarts. One day, they decided to calculate the ratio of the muffins to croissants and the ratio of croissants to tarts. The ratio of muffins to croissants is 4:5, and the ratio of croissants to tarts is 3:2. If the bakery produced a total of 240 pastries that day, how many muffins did they make?