The sum of 2 numbers is 19

Seven times the first number is five more than the second.
What are the 2 numbers?

How do I get the formula for the question?
Is it 7X+7-5=19 if X=first number and y=second number

x + y = 19

7x + 5 = y
7x -y = 5
Add the first and third equations.
8x = 24
The rest is easy.