Solve for a c/a=r/d