The root bridge in Spanning Tree Protocol is elected using the lowest Bridge ID. Bridge ID comparison uses the lowest bridge priority first, and if there is a tie, the lowest MAC address wins. The lowest listed priority is 8192, shared by SW4 and SW2. Between those two, SW2 has the lower MAC address (00:ac:f0:9b:dc:72), so it has the lowest Bridge ID and is elected the root bridge.
Community Discussion