128 is the default bridge priority.
2 is the port number and its default priority.
STP always chooses the bridge or port with the lowest number = highest priority. Paths to bridges with higher numbers are blocked. Put another way, the bridge with the overall lowest priority number is elected as root bridge. All ports leading to the root bridge are compared by their cost (lowest cost is chosen) and when there's a tie between bridges, the path to the bridge with the lowest priority number is chosen.
When there's a tie between ports (=two ports connecting to the same bridge) the ports' priorities are used.
Note that in both bridge and port priorities, the configured priority is prepended to the bridges MAC address or the port number. So, even with identical configured priorities there can never be a tie between bridges or ports as each hardware number is unique.