Match given gates in Column I with the logical Boolean operation they perform in Column II and mark the correct option from the codes given below.
P -2,4,5 ,Q-5, R-3,5 , S-1,2