I hope these numbers are random, they dont seem to make sence.
How about adding a component time as well? I can see a,b,c beeing 40 and a,c beeing 50. Time wize it should probably be reversed.
Routing on distance isnt the key I think as you will always arrive at a,b,c even if b isnt needed ?