According to the meaning of the question: 27+x = [19+(26-x)] * 2 26-21= 5 (person)
27+x=(45-x)*2
27+x=90-2x
3x=63
x=2 1
Answer: 2 1 person to A, 5 people to B. ..