Solve for n g(n)=-2n-4