We have the system
x−4y+7z=g(1)
3y−5z=h(2)
−2x+5y−9z=k(3)
For the system to be consistent, every solution of the first two equations must also satisfy the third. Therefore we first solve (1) and (2) for x and y in terms of a free variable (which we choose as z) and the constants g,h.
From equation (2) we isolate y:
3y−5z=h
⇒3y=h+5z
⇒y=3h+5z(4)
Next, from equation (1) we isolate x:
x−4y+7z=g
⇒x=g+4y−7z
Substituting the value of y from (4):
x=g+4(3h+5z)−7z
Bring everything over a common denominator of 3 (so that every term contains the same denominator):
x=g+34h+20z−321z
Combine the z terms in the numerator:
x=g+34h+20z−21z
⇒x=g+34h−z(5)
Now we substitute the expressions (4) and (5) for y and x into equation (3). If the system is consistent, that substitution must satisfy (3) for every choice of the free variable z.
Equation (3) is
−2x+5y−9z=k
Insert (5) for x and (4) for y:
−2[g+34h−z]+5(3h+5z)−9z=k
Let us open the brackets step by step. First, the term −2x:
−2x=−2g−2(34h−z)=−2g−38h−2z
Second, the term 5y:
5y=5(3h+5z)=35h+25z
Now we write the entire left‐hand side of (3) over the common denominator 3. We keep the integer term −2g separate for clarity:
Left side =−2g+3−(8h−2z)+(5h+25z)−9z
Convert the final term −9z to the same denominator (multiply numerator and denominator by 3):
−9z=−327z
So the complete numerator becomes
[−(8h−2z)+(5h+25z)−27z]
Open the brackets carefully:
−(8h−2z)=−8h+2z
Add 5h+25z:
−8h+2z+5h+25z=−3h+27z
Finally, subtract 27z:
−3h+27z−27z=−3h
Thus the entire fraction reduces to
3−3h=−h
Putting this together with the integer term −2g, the left side of equation (3) simplifies completely to
−2g−h
For consistency we equate this to the right side of (3):
−2g−h=k
Move every term to one side to form a single relation among g,h,k:
−2g−h−k=0
Multiply through by −1 to write it in a more familiar positive form:
2g+h+k=0
This is exactly the condition listed in Option C.
Hence, the correct answer is Option C.