am nevoie urgent, vă rog!

Răspuns:
lungimea totala notezi cu x
calculezi dupa fiecare zi restul de parcurs