This question was asked in Ex 9.3, 3
Can this solution be a bit shorter 
Sweksha Ranjan's image