Mary's age is 4 years, while her sister's age is 2 years...
This can be attained by the sum as shown below:-
Sister's age be x years. Mary's age is 2x years.
After 5 years, their age:-
Sister's age=x+5 years
Therefore, Mary's age=(2*2) years=4 years
sister's age = 2 years...