A ferry transports tourists between three islands. It sails from the first island to the second island, $4.76 \mathrm{~km}$ away, in a direction $37.0^{\circ}$ north of east. It then sails from the second island to the third island in a direction $69.0^{\circ}$ west of north. Finally it returns to the first island, sailing in a direction $28.0^{\circ}$ east of south. Calculate the distance between (a) the second and third islands and (b) the first and third islands.