The number on the friends is the number of bridges connecting to that friends. Two friends can be connected by at most two bridges. Good luck!