At a local bakery, there are three types of pastries: muffins, croissants, and danishes. The bakery sells 120 pastries in total. The number of muffins is 4 times the number of croissants, and the number of danishes is half the number of croissants. How many muffins does the bakery sell?