The ball takes 0.2 sec to travel the height of the window, which is 2 m.
Then the speed of the ball at that time was



We know that:

Where
is the initial velocity.
So:



Then we have the equation for the position as a function of time.

Where
= initial position
r = position as a function of time
= initial velocity
g = acceleration of gravity
t = time.
If the ball is thrown from the ground then:
= 0 m
We want to find now the distance between the window and the ground.
When the ball reaches the bottom of the window t = 1.8s
So:

m
The window is 37,404 m high
Finally, to know how high the ball rises we must know at what moment the vertical velocity of the ball is zero.


Now we replace t in the position equation


The ball reaches up to 44.70 m in height.