Let's assume Thor's age is x years. According to the given information, Elsa is 7 years younger than Thor, so Elsa's age would be x - 7 years.
The sum of their ages is 35, so we can set up the equation:
x + (x - 7) = 35
Simplifying the equation:
2x - 7 = 35
Adding 7 to both sides:
2x = 42
Dividing both sides by 2:
x = 21
So Thor is 21 years old.
Substituting this value back into the equation for Elsa's age:
Elsa's age = 21 - 7 = 14
Therefore, Thor is 21 years old and Elsa is 14 years old.