A popular topic in our country: only give money to the people next door, I don't know how much money and people; 7 per person under two, 7 per person, half a catty and half a person; How many people share how much silver? (Note: gold here refers to gold, 1 gold = 10 Liang)
There are x people and y silver. According to the meaning of the question, you get
y=7x-7
y=5x+5
solve
x=6
y=35
Answer: Six people are divided into 35 taels of silver.