You might have said 18, but in fact, it won't expand D into E until it knows the shortest distance to D, and the shortest distance is going to be 10 because we can go this way. four plus one is five and five is 10 so it should be 17, but let's actually simulate and see what happens. 