We can convert word problems into equations by translating key terms into operations:
We're given:
Let the first number be a and the second number be b.
Translate the words into numbers:
Subtract the second equation from the first to isolate b:
[tex](a+b)-(a-2b)\\=a+b-a+2b\\=b+2b\\=3b[/tex]
[tex]5-29\\=-24[/tex]
[tex]3b=-24\\b=-8[/tex]
Therefore b is -8.
Substitute b back into the first equation to find a:
[tex]a+b=5\\a-8=5\\a=13[/tex]
Therefore, a is 13.
a = 13
b = -8