Pencils come in cartons of 24 boxes. A school bought 50 cartons of pencils for the start of school.Each box of pencils cost 2$.How much did the school spend on pencils?