In scan 1 when the PLC evaluated the first rung, the conditions were:
0000 = True
0001 = True
1000 = False
As a result of evaluating the first rung, 1000 becomes true,
so the conditions prior to evaluating the second rung are:
1000 = True
As a result of evaluationg the second rung, 0500 becomes True.