Solve for p (r-p)/4=S