I'm not sure I understand what you're asking then. The battery and inductor voltages add to give 20V, and there is a 5V drop across the resistor. So the net voltage between A and B is 15V.
@RobertFrost If a user plans to be here for only one or two days (under one particular account) hoping to get answers to their questions, and NOW, why should they be satisfied, when others remain answerless? Or do you think we should give every user demanding a full step-by-step solution, an answer (typically from the least capable among us)? So they can come back as a "new" user under a different user name to make yet another demand that you think should be satisfied for any "new" user?