Hello there!
Question:-

We need to find the value of x.
Solution:-

Note that g , c and x equals to 1g,1c and 1x.

Flip the equation:-

Add -c to both sides:-

On Simplification:-



______________________________________
Henceforth the value of x is :-

_________________________________
Please let me know if you have any questions.
~MisterBrian