Answer-
The school spent $2400 on pencils.
Solution-
Number of pencils come in cartons of pencil box = 24
Number of cartons of pencils bought by the school = 50
So,
[tex]\text{Number of total pencils}=\text{Number of pencils in a box}\times \text{Number of box}\\\\=24\times 50=1200[/tex]
Price of each pencil = $2
So,
[tex]\text{Total cost}=\$2\ \times\ \text{Number of pencils}\\\\=\$2\ \times\ 1200\\\\=\$ 2400[/tex]
Therefore, the school spent $2400 on pencils.