8. It is known that two engineering teams, Team A and Team B, have several people each. If 90 people are transferred from Team A to Team B, then the total number of people in Team B will be twice that of Team A; If some people are transferred from Team B to Team A, then the total number of people in Team A will be 6 times that of Team B. Then, the minimum number of people originally in Team A is.
Let the original number of people in team A and team B be $a, b$, then $b+90=2(a-90), a+k=6(b-k) \Rightarrow 11 a=7 k+1620$, since $1620 \equiv 3(\bmod 11) \Rightarrow 7 k \equiv 8 \Rightarrow k \equiv 9(\bmod 11)$, so $11 a \geqslant 7 \times 9+1620=1683 \Rightarrow a \geqslant 153$.