Question: what is the difference between root id and bridge id?
Answer: A Root Bridge is a reference point for all switches in a spanning-tree topology. ... When Switch B receives the BPDU from Switch A it compares the Bridge ID of itself with that of Switch A. Since the Priorities are same, the MAC address is used as the tie breaker and thus Switch A wins due to lower MAC Address.