Peter is 13 and Luke is 24.
Suppose Luke is
Here is how you write "Luke's age is 2 less than twice Peter's age":
Here is how your write "The sum of their ages is 37":
We can replace
Now you can replace