Mary is x years old.
Consuela is three times as old as Mary, so she's 3x years old.
In 10 years Mary will be x+10 years old, and Consuela will be 3x+10 years old.
In 10 years Consuela will be twice Mary's age, so she'll be 2(x+10) years old.

Now Consuela is 30 years old.

4 years ago Consuela was 26 years old.