That's just the from the standard Irish secondary level leaving exam, although it is higher level.
It is really just a calculus question applied to a real life question. The leaving cert exam usually gives 2- 3 questions like this to go along with the pure maths
RE: Try out Q8 from the 2019 higher level leavingcert. Then if you get stuck, check out my video solution