3. A certain mechanism consists of 30 parts, some of which are large, and some are small. It is known that among any 12 parts taken, there will be at least one small part, and among any 20 parts - at least one large part. How many of each type of part does the mechanism contain?