How solve q 12 of ex 6.4

Ujjwal Mishra's image