Potential and kinetic energy are the two types of energy, but they do get separated into subgroups, for which I do not know. Hope that helps.
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 
