Starting from warehouse W, use Prim’s algorithm to connect six warehouses W, X, Y, Z, U and V with minimum total distance. The distances (km) are: W–X=5, W–Y=3, X–Y=4, X–Z=6, Y–Z=2, Y–U=7, Z–U=1, Z–V=8, U–V=9. List the edges as they are added and give the total distance.