Deadlocks

Answer & solution
Official answer: C, D
Step through it (5 checks)
Convert each wait on a resource into a wait on its current owner. The wait-for graph has edges P1→P2, P2→P3, P3→P1, P2→P4, P4→P2. It contains the cycles P1→P2→P3→P1 and P2→P4→P2. With one instance of each resource and actual blocking waits, such cycles characterize deadlock.
Aborting P1 removes the first cycle but leaves P2↔P4, so A fails. Aborting P3 has the same problem, so B fails. Aborting P2 removes a vertex common to both cycles. Remaining waits can be satisfied as resources are released, with no cycle left; C works. Aborting P1 and P4 removes one vertex from each cycle, leaving only P2→P3 among the surviving wait edges, so D also works.
The question asks which listed sets suffice, not which set uses the minimum number of abortions. Hence D remains correct even though C resolves the problem with fewer abortions. Use the question's explicit interpretation of “claim” as a current wait; a future potential-claim edge in deadlock-avoidance terminology would not imply the same present deadlock. Select C,D.