Solve for f D=4/7(f+g)