Juliet went to the mall to buy clothes for the new school year. Shirts cost $15 and pants cost $40. If Juliet bought 10 items of clothing for a total of $225, how many shirts and pants did she buy?