A student is working a part time job delivering pizzas The student earns $40 a shift and earns $1.25 per pizza delivered. One shift, the student earned $58.75. How many pizzas did they deliver that shift?​