Answer:
[tex]x=\frac{gc+d}{r+q}[/tex]
Step-by-step explanation:
[tex]rx+qx-d=gc\\ (r+q)x-d=gc\\ (r+q)x=gc+d \ \ \ |:(r+q)\\ x=\frac{gc+d}{r+q}[/tex]