Solve for p square root of -10+7p=p