For a volleyball tournament, Marcus ordered T-shirts for all of the volunteers. The medium-sized shirts cost $4 per shirt and the large-sized shirts cost $5 per shirt. The total number of T-shirts ordered was 55 and the total cost was $243. How many medium-sized shirts were ordered?