Potential difference between these points
An ideal voltage source defines the potential between two points. So it is 5V between B and A. There is a voltage drop of 7V across the resistor resulting in a current of 0.875A through all three components.