Solve for c p=r-c