Solve for g D=7/8(f-g)