Smooth spheres $A$ and $B$, of equal radii and masses $m$ and $2m$, lie on a smooth horizontal floor. Sphere $A$ moves with velocity $u$ and collides directly with stationary sphere $B$. The coefficient of restitution is $e$.
(a) Find their velocities after the collision. [3]
Sphere $B$ then strikes a fixed vertical wall which makes an angle $\theta$ with its direction of motion, where $\tan\theta=\tfrac34$. The coefficient of restitution at the wall is $\tfrac23$. Immediately after this impact, the kinetic energy of $A$ is $\tfrac5{32}$ of the kinetic energy of $B$.
(b) Find the possible values of $e$. [7]