In a small bakery, the owner sells croissants for $2 each and muffins for $3 each. One day, the owner sold a total of 50 items, and the total revenue from the sales was $120. How many croissants did the owner sell?