Answer:
![(6000-p)/(24)](https://img.qammunity.org/2021/formulas/mathematics/middle-school/qjpq027bdshxry74rz7sdx7c67tyd4pnkc.png)
Explanation:
Lets understand the question.
Liam had $250
Cost of gift = p
Total Students = 24 (including Liam)
Each paid:
p/24 (Liam also paid this amount)
So, in terms of Liam, he would have:
250 (already had)
expended p/24 for gift, now he has:
![250-(p)/(24)\\=(250(24)-p)/(24)\\=(6000-p)/(24)](https://img.qammunity.org/2021/formulas/mathematics/middle-school/2qijfr4c24tngnszliafrdl1k9cs9eveq6.png)
This is amount of money Liam had left in terms of p.