Solve for a P=a-b+c