In this case, we can solve the problem by looking at the numbers
Linda's mother is currently 38 years old. In two years, she will be 40 years old, at which time Linda will be 1/2 as old as her mother, or 20 years old.
So, 20 years - 2 years = 18 years.