Explanation:
So let's make the two numbers "X" and "Y".
X + Y = 5
That's the very first line
let's take X as the bigger number and Y as the Smaller number.
3x + 2y = 28
now we have two equations and two unknowns.
We can also arrange the first equation to be as
X = 5 - Y
substitute this equation in the 2nd equation
3(5- Y) + 2Y = 28
15 - 3Y + 2Y = 28
-Y = 13
Y = -13
Substitute Value of Y in any equation to get X
X = 5 - (-13)
X = 18