87. A, B, C, D, E, F, G seven people stand in a row, but A does not want to be at the head of the row, and B does not want to be at the tail of the row, so there are $\qquad$ ways to arrange them that meet the requirements.
Answer: 3720