Two spanners X and Y of lengths 15cm and 20cm respectively are used in turn…