.
In 12 years, Ray will be twice as old as his sister, and the difference between their ages will be still 22 years.
It means (and you should understand it without further explanations) that in 12 years their ages will be 22 and 44 years.
Hence, Mary is 22-12 = 10 years old now, and Ray is 44-12 = 32 years old now.