Solve for g g/(e^2)-r=m-y