Simply apply inclusion exclusion rule ATQ.
Given that, CKs are {A} and {BC}.
So, Total no. of SKs = 2^(n-1) + 2^(n-2) – 2^(n-3) [ {inclusion of 1st CK + inclusion of 2nd CK } – {exclusion of {CK1 & CK2}}]
= 2^(5-1) + 2^(5-2) – 2^(5-3)
= 2^4 + 2^3 – 2^2
= 16 + 8 – 4
= 20 (Ans)