$$
      \begin{gathered}
      a = 1 + x + y \\
      d = 4 - y     \\
      g = 2x - 5y
      \end{gathered}
$$
