3.8 Arrange 8 people in a row, where A and B are two of them, the number of different arrangements where there are exactly three people between A and B is $\qquad$ (express the answer as a numerical value).

Translate the above text into English, please keep the original text's line breaks and format, and output the translation result directly.