Final answer:
The cost of the present bought by Liam and his classmates was $6000.
Step-by-step explanation:
In this question, the subject is Mathematics and the grade is Middle School. Liam had $250 and he and his classmates bought a present for their teacher. The cost of the present, denoted as $p, was evenly split among the 24 classmates. To find the cost per classmate, we divide the total cost by the number of classmates, which gives us $p/24. Since Liam's $250 was used for the present, we can set up the equation $p/24 = $250 and solve for p. Multiplying both sides of the equation by 24, we get p = $250 x 24 = $6000. Therefore, the cost of the present was $6000.