Problem #PRU-88137

Problems Set theory and logic Algorithm Theory Algorithm Theory

Problem

A kindergarten used cards for teaching children how to read: on some, the letter “MA” are written, on the rest – “DA”. Each child took three cards and began to compose words from them. It turned out that the word “MAMA” was created from the cards by 20 children, the word “DADA” by 30 children, and the word “MADA” by 40 children. How many children all had 3 of the same cards?