Because, a passes through B=B,
So, B={0} or B={4}.
When B={0}, the solution of a-2x+8=0 is 0, and bringing 0 into the formula of 8=0 is not valid, so substituting B={4} into the solution gives a=0.