A school bought several pairs of skis, each costing $40 and several pairs of skates, each costing $50. the cost of the whole purchase was $600. how many pairs of skates were purchased if in total there were 13 items bought?