
Two smooth vertical walls meet at right angles. Identical smooth spheres $A$ and $B$, each of mass $m$, are on a smooth horizontal surface. Sphere $A$ is at rest a distance $d$ from each wall. Sphere $B$ moves with speed $u$ at an angle $\theta$ to the line of centres and collides with $A$. After the collision the spheres take the same time to reach a wall. The coefficient of restitution is $\tfrac12$.
(a) Find $\tan\theta$. [4]
(b) Find the percentage loss in total kinetic energy. [3]