Solve for f 3M+1/2tf=g^3