The step-by-step explanation is as follows.
Present age of Asha is 2+x2 yrs
Present age of Nisha is x yrs.
difference in asha 's and nisha 's ages = x2 + 2 - x
so , after x2 + 2 - x years....nisha will grow to asha 's age
now to calculate asha 's age when nisha 's age will be x2 + 2 , add x2 +2 to x2 + 2 - x ...!!
i.e. x2 + 2 + x2 + 2 - x = 10x -1
2x2 + 4 - x = 10x - 1
2x2 - 11x + 5 = 0
2x2 - 10x - 1x + 5 = 0
2x ( x -5 ) -1 ( x - 5) = 0
(2x - 1) ( x - 5 ) = 0
so , x = 5 years
asha 's age = x2 + 2 = 27
So Nisha's age = 5
Asha's age = 27
Hope it answers your question.
All the best!