Solve for f D=2/3(f+g)