Solve for a a-b+c=P