Let
denote the position vector of the ball hit by player A. Then this vector has components

where
is the magnitude of the acceleration due to gravity. Use the vertical component
to find the time at which ball A reaches the ground:

The horizontal position of the ball after 0.49 seconds is

So player B wants to apply a velocity such that the ball travels a distance of about 12 meters from where it is hit. The position vector
of the ball hit by player B has

Again, we solve for the time it takes the ball to reach the ground:

After this time, we expect a horizontal displacement of 12 meters, so that
satisfies

