check the first picture below, that's pretty much the trajectory of an object under the effect of gravity.
check the second picture below.
so the ball goes up up, reaches the vertex and then down down, what is the x-coordinate of the vertex anyway?

the ball goes up up, reaches a maximum height in 2 seconds, then takes another 2 seconds falling back down.