Just like any other variable, we complete the same process
[tex]k = g - \frac{d}{c} \\ k + \frac{d}{c} = g \\ \frac{kc + d}{c} = g \\ [/tex]
Now we can test it, let's say k=4, d=6, and c=2, let's find the value of g
[tex]4 = g - \frac{6}{2} \\ 4 + 3 = g \\ 7= g[/tex]
OR
[tex] \frac{kc + d}{c} = g \\ \\ \frac{(4 \times 2) + (6)}{(2)} = g \\ \frac{14}{2} = g \\ g = 7[/tex]