Solve for c a/b=c/d