We need to find the number of one-to-one assignments of 4 shirts {Red, Pink, Blue, White} to 4 people {Arun (A), Gulab (G), Neel (N), Shweta (S)} such that:
Arun does not get Red (A=R)
Shweta does not get White (S=W)
We can use the Principle of Inclusion-Exclusion:
Total unrestricted assignments:
N=4!=24 Number of ways Arun gets Red (EA):
∣EA∣=3!=6 Number of ways Shweta gets White (ES):
∣ES∣=3!=6 Number of ways both Arun gets Red AND Shweta gets White (EA∩ES):
∣EA∩ES∣=2!=2 Number of valid ways:
Valid Ways=N−(∣EA∣+∣ES∣−∣EA∩ES∣)=24−(6+6−2)=24−10=14
Therefore, there are 14 valid ways.