My Names Phil and I have a maths question I would like some help on ^_^

Currently trying to get into Dijkstra's Algorithm