Solve for g e=8gh