Question: what is the direction for acceleration?
Answer: When an object is speeding up, the acceleration is in the same direction as the velocity. Thus, this object has a positive acceleration. In Example B, the object is moving in the negative direction (i.e., has a negative velocity) and is slowing down.