Scottish Crocodile

Ran across this article [Link] this morning. Scots maths problem about a crocodile noshing a zebra. Claimed to be too hard. Not sure why. My solution below.

assuming I didn’t make an algebra mistake. This is a sophomore level problem as worked but all that was needed was the first equation, formed by inspection, and a bit of iteration of x between 0 and P.

Sadly refreshing.