For this case we have the following system of equations:

Equating both equations we have:

We must find the solutions, for this we factor. We look for two numbers that, when multiplied, result in 4 and when added, result in 5. These numbers are 4 and 1:

Then, the factorized equation is of the form:

Thus, the solutions are:

We look for solutions for the variable "y":

Thus, the system solutions are given by:
ANswer:

3f + 2g = 30 . . .(1)
f + 2g = 26 . . . .(2)
(1) - (2) => 2f = 4 => f = 4/2 = 2
From (2), 2 + 2g = 26 => 2g = 26 - 2 = 24 => g = 24/2 = 12
Therefore, f = 2 and g = 12
X= -3x + 2 this is the answer