Uniform smooth spheres $A$ and $B$, of equal radii and masses $m$ and $km$, lie on a horizontal surface. Sphere $A$ travels with speed $u$ towards stationary sphere $B$; its direction makes an angle $\alpha$ with the line of centres. The coefficient of restitution is $\tfrac12$.
(a) Show that the speed of $B$ after the collision is $\dfrac{3u\cos\alpha}{2(1+k)}$, and find the component of the velocity of $A$ along the line of centres. [4]
After the collision, the kinetic energies of $A$ and $B$ are equal.
(b) Given that $\tan\alpha=2$, find the possible values of $k$. [5]