This question was asked in Ex 6.1, 5

I can't understand the last step

Sunanda's image