Proszę o pooomoc!!!!!!!!!

Przepraszam, ale to zadanie jest źle zrobione. Nie ma czegoś takiego jak "I had to..."