Horizontal velocity (Vx) = Distance / Time
Given Distance (horizontal displacement) = 40 meters and Time = 4 seconds,
Vx = 40 meters / 4 seconds = 10 meters per second.
Therefore, the ball was thrown with an initial horizontal velocity of 10 meters per second.