A school paid $31.25 for each calculator. If the school bought x calculators, how much did they pay?