Two variables

Hi,
Does this kind of math frequently come in the exam??It is taking me 5/6 minutes to finish it!

Share your approach.

I’m following this method & also ending up making mistakes