Solve r = cs/d for c