Study the ladder logic program in the figure below, and answer thequestions that follow: (8 points, 1 point each)a. Under what condition will the latch rung 1 be true?b. Under what conditions will the unlatch rung 2 be true?c. Under what condition will rung 3 be true?d. When PL1 is on, the relay is in what state (latched or unlatched)?e. When PL2 is on, the relay is in what state (latched or unlatched)?f. If AC power is removed and then restored to the circuit, whatpilot light will automatically come on when the power is restored?g. Assume the relay is in its latched state and all three inputs arefalse. What input change(s) must occur for the relay to switch intoits unlatched state?h. If the examine if closed instructions at addresses I/1, I/2, and I/3are all true, what state will the relay remain in (latched orunlatched)?