10. (5 points) A basket of apples is divided into two portions, A and B. The ratio of the number of apples in A to the number of apples in B is $27: 25$, with A having more apples than B. If at least 4 apples are taken from A and added to B, then B will have more apples than A. How many apples are there in the basket?
【Analysis】 "If at least 4 are taken from A and added to B, then B will have more than A" means that if 3 are taken from A and added to B, then B will not have more than A.

【Solution】 According to the problem:
If 4 are taken from A and added to B, then B will have more than A; if 3 are taken from A and added to B, then B will not have more than A. Let A have $27n$, and B have $25n$,
then: $\left\{\begin{array}{l}27n-4<25n+4 \\ 27n-3 \geqslant 25n+3\end{array}\right.$
we get $3 \leqslant n<4$,
so $n=3$,
the total number of apples is: $27n+25n=156$,
therefore, there are 156 apples in the basket.