This question was asked in Ex 6.6, 8 (Optional)

I didn't understand this can you give me another soution

UTKARSH YADAV's image