The value of x, the first number, is equal to 3.
The value of y, the second number, is equal to 7.
x + 3y = 24
5x + 3y = 36
We can subtract both equations from each-other to cancel out a variable.
After doing so, we're left with:
-4x = -12
Multiply each term by -1
4x = 12
Divide both sides by 4.
x = 3
Now that we have a value for x, we can solve for y.
Plug this value into the first equation.
3 + 3y = 24
Subtract 3 from both sides.
3y = 21
Divide both sides by 3.
y = 7