x = 29 + (18*y)
x * y = 6354
First we can insert either y or x into the other equation. For this I shall insert y's equivalent.
x * y = 6354
∴ y = 6354/x
Insert that into the below equation like so:
x = 29 + (18*y)
∴ x = 29 + (18 * 6354/x)
Now let's simplify and re-arrange:
x = 29 + (114372/x)
Since we don't like that x being on the bottom of the fraction, let's multiply it by "x". of course everything else must be to keep this equation valid:
[x] * x = [29 + (114372/x)] * x
x2 = 29x + 114372
0 = -x2 + 29x + 114372
We have now gotten ourselves a quadratic equation, so use the "quadratic forumula" to find all possible values of "x":
x = (-29 ± sqrt(292 - 4*-1*114372)) / (2 * -1)
x = (-29 ± sqrt(841 + 457488)) / -2
x = (-29 ± sqrt(458329)) / -2
x = (-29 ± 677) / -2
The two results are...
x = (-29 + 677) / -2 = -324
x = 353
Using these two values of x, let's find their associated values of y:
y = 6354/x
y = 6354/-324 = -19.61 [1 recurring]
y = 6354/353 = 18
So the two results are:
x = -324 and y = -19.61 [1 recurring]
x = 353 and y = 18