On a shared segment where two switches advertise equal path costs to the root bridge, the interface on the switch with…