Uniform smooth spheres $A$ and $B$, of equal radii and masses $4m$ and $m$, lie on a smooth horizontal surface. Sphere $A$ moves with speed $u$ and collides directly with stationary sphere $B$. After the collision, the momentum of $A$ is three times that of $B$. Find the coefficient of restitution $e$. [4]