For a school trip. Maria decides to order T-shirts for everyone. It costs $4 for a medium size, and $5 for a large size. She orders a total of 70 shirts and spends a total of $320. How many are medium shirts?