Let's say the first number is x and the second number is y.
"The sum of two numbers is 36" can be translated to the following algebraic equation:
x + y = 36
"Twice the first number minus the second is 6" can be translated to:
2x - y = 6
We now have two equations, two unknowns. We can use Elimination to solve. If you add the two equations together, the y goes away and you're left with:
3x = 42
x = 14
Since 14 is the first number and we know that the sum of the two numbers, x and y, is 36, then the second number must be 22.
x = 14
y = 22
Hope this was helpful.