We are given a logic puzzle involving three people: P, Q, and R. We know the following:
The goal is to find the number of pairs where a married person is looking at an unmarried person.
Let's represent Married as 'M' and Unmarried as 'U'.
We have two specific looking relationships:
We need to consider the two possible marital statuses for Q:
In this case, there is exactly 1 pair where a married person looks at an unmarried person.
In this case, there is also exactly 1 pair where a married person looks at an unmarried person.
In both possible scenarios for Q's marital status, the number of pairs where a married person is looking at an unmarried person remains consistent.
Therefore, the total number of such pairs is 1.
Consider a linear arrangement of seven bulbs, each of which can be in the ON or OFF states. The initial configuration of the bulbs is shown in the figure. In every Step, the states of the bulbs are changed based on the following rules:
The state of bulbs at the end of Step 1 and Step 2 are also shown in the figure.
The number of bulbs which are ON at the end of Step 8 is ______

Consider a five-digit number PQRST that has distinct digits P, Q, R, S and T, and satisfies the following conditions:
$P < Q$
$S > P > T$
$R < T$
If integers 1 through 5 are used to construct such a number, the value of P is: