To solve this question lets use the conservation of energy law.
The kinetic energy of the baseballs will transform in elastic potential energy as they penetrate the haystick.
Lets supose the haystick behaves as a spring with elastic constant equals k.
Conservation of energy tells us that:
where:
v = velocity of the ball
k = spring constant
x = distance traveled by the ball (deformation)
Solving for x we get:
Lets say the velocity of the second ball is v'. We know that v' = 2v. Plug that information in the formula above:
So the second ball will go 4 times farther into the haystack than the first ball.