1) This is a combinatorics, not probability question
2) It is not ambiguous nor poorly worded, you just have to read it carefully:
Each person is given a set of keys. Two people may have some keys in common but they wont have all the keys
needed to open all the locks. However, three people will (or you can pretend they are combination locks, any two
people wont know all the combinations, but any three will).
Answer Below:
Suppose there are P people in the village. A lock is made for every possible pair of people (in other words P*(P-1)/2 locks). The key for
a lock is NOT given to either of the pair associated with the lock, but it is given to everyone else. In this way any two people
will always have a lock they can't open (but they can open all other locks) and any third person can open the lock that those two
people can't. So how many keys does each person have? He has a key for each possible pair of people that doesn't include him:
(P-1) * (P-2) / 2.
Example: There are 4 people, ABCD and so 6 keys, numbered 1,2,3,4,5,6. All possible pairs of people (and the key that they both DONT have) are:
AB 1
AC 2
AD 3
BC 4
BD 5
CD 6
So
A has keys 4,5,6
B has keys 2,3,6
C has keys 1,3,5
D has keys 1,2,4
You can check that this works.