A company purchased 10,000 pairs of men's slacks for $18.86 per pair and marked them up $22.63. What was the selling price of each pair of slacks? Use the formula S=C+M