Both will hit the ground at the same time because their initial vertical velocity is the same and they are accelerating downward at the same rate (-9.8 m/s^s). Ball A will travel further because it has a greater horizontal velocity and both balls have a horizontal acceleration of 0. Their horizontal velocity will remain contestant and they will travel for the same amount of time. The if t is constant and the v of ball A is greater then D will be greater in the equation
D (distance) = vt+1/2•a•t^2