use the formula
v= u+ at
v is final velocity , u is initial velocity , a is acceleration and t is time
put the values
20 = 0+ a×5
a = 4 m/s²
Because of Surface tension
Explanation:
Given
initial speed(u)=3 m/s
mass of each ball is m
Let the cue ball is moving in x direction initially
In elastic collision Energy and momentum is conserved
Let u be the initial velocity and
be the final velocity of 8 ball and cue ball respectively

The angle after which cue ball is deflected is given by

Conserving momentum in x direction


Along Y axis


substitute the value of 
we get 
