horizontal distance of home run is 400 ft = 122 m
height of the home run is 3 ft = 0.9 m
now the angle of the hit is 51 degree
now we have equation of trajectory of the motion


solving above two equations we have

now here we will plug in all data




so the ball was hit with speed 35.1 m/s from the ground