Answer:
See attached
Step-by-step explanation:
You want a circuit that outputs 1 when P=Q and Q≠R.
The circuit diagram will depend on the building blocks available. In the attached, we have used the blocks ...
The XOR will give a true output when Q and R have opposite values.
The XNOR will give a true output when P and Q have the same value.
The AND will give a true output when both the XOR and XNOR outputs are true, that is, for Q and R opposite while P and Q are the same.
The attachment shows the circuit.