Now down to the nitty-gritty....
In the OP's circuit, the assumption is made that the positive of the 2 batteries will be the stated voltages, but in actual fact the 12V battery will attempt to charge the 9V battery, at a current that we cannot determine because we don't know its internal resistance. It is most likely that the pos. terminal of the 9V battery will be some potential above 9V, and thinking further, it would have to be to cause current to flow in reverse through it. We have to have 20uA flowing right to left to get the voltages we calculate, and I doubt that will be true, because we've ignored the internal resistance to a reverse current in the 9V battery.
There's going to be a substantial difference between the theoretical voltage at point B, and anything you might measure, due solely to the characteristics of the 9V battery, everything else is a known factor.
Since it was an exam question originally, let's stick with the theoretical and not throw unknowns into the equation.
In the OP's circuit, the assumption is made that the positive of the 2 batteries will be the stated voltages, but in actual fact the 12V battery will attempt to charge the 9V battery, at a current that we cannot determine because we don't know its internal resistance. It is most likely that the pos. terminal of the 9V battery will be some potential above 9V, and thinking further, it would have to be to cause current to flow in reverse through it. We have to have 20uA flowing right to left to get the voltages we calculate, and I doubt that will be true, because we've ignored the internal resistance to a reverse current in the 9V battery.
There's going to be a substantial difference between the theoretical voltage at point B, and anything you might measure, due solely to the characteristics of the 9V battery, everything else is a known factor.
Since it was an exam question originally, let's stick with the theoretical and not throw unknowns into the equation.