Here angles 1 and 2 will form a linear pair.
Angles 2 and 5 form an alternate pair.
Hence, Option B is right.