Solve for s p=2sq+2sr