This question was asked in Ex 2.4, 4

How the solution done ???

Hariom Gupta's image