Speed problem. Please help with steps.

A locomotive engine without a train can go 24 km an hour and its speed is diminished by a quantity, which varies as the square root of the number of wagons attached. With 4 wagons its speed is 20 km per hour. FInd the greatest number of wagons with which the engine can move.

Re: Speed problem. Please help with steps.

Re: Speed problem. Please help with steps.

f(0)= 24 and f(4)= 20. Its speed has been "diminished" by 4 and that is so that k= 2. gives which gives MaxJasper's answer.

Re: Speed problem. Please help with steps.

Thank you both Halls ofIvy and MaxJasper!