The first two octets must match exactly (because the mask is 255.255 ).
The last octet doesn't matter (because the mask is 0).
The third octet is the important one. The mask 240 ( 11110000 ) means the first 4 bits of the third octet must match.
A. 172.16.5.5 AND 172.17.5.5
- The second octets (16 and 17) do not match.
- They are on DIFFERENT networks.
C. 192.168.1.1 AND 193.168.1.2
- The first octets (192 and 193) do not match.
- They are on DIFFERENT networks.
D. 200.10 .35 .10 AND 200.10 .50 .20
- The first two octets ( 200.10 ) match.
- We must check the third octet: 35 and 50 .
- 35 in binary is 00100011
- 50 in binary is 00110010
- The first 4 bits ( 0010 and 0011 ) do not match.
- They are on DIFFERENT networks.
B. 130.20.100.5 AND 130.20.110.254
- The first two octets ( 130.20 ) match.
- We must check the third octet: 100 and 110 .
- 100 in binary is 01100100
- 110 in binary is 01101110
- The first 4 bits ( 0110 and 0110 ) are identical.
- They are on the SAME network.
The correct choice is $\mathbf{B}$.