gravity
A very important point here is that the vertical motion of these two balls is identical. That is, they each fall exactly the same distance vertically in each succeeding second. The constant horizontal velocity of the blue ball has no effect on its accelerated vertical motion. Therefore, the vertical motion of the blue ball can be analyzed exactly the same as the vertical motion of the red ball.