In the figure, potential difference (in V) between A and B is
15
0
10
5
Diode is in forward bias , so it will behave as conducting wire
VAB=305+5×5=15V