The calligraphy group draws lots in groups of 7 people, and 47 people in groups of 4 people are divided into 8 groups. How many people are there in each painting and calligraphy group?

Solution: Set the calligraphy group as X group and the painting group as Y group.

X+Y=8

Y=8-X

7x+4x (8x)= 47

7X+32-4X=47

3X=47-32

3X= 15

X=5

Y=8-5=3

Checking calculation: 7 times 5+4 times 3=47.