Answer:
483 840 ways
Step-by-step explanation:
Let you and your friend be A and B.
With three people always between you two,, we have
Case 1: AxxxBxxxxx
Case 2: xAxxxBxxxx
Case 3: xxAxxxBxxx
Case 4: xxxAxxxBxx
Case 5: xxxxAxxxBx
Case 6: xxxxxAxxxB
So there is 6 ways of arranging you two through the line and for each of the six cases,
If you two remained in your positions, the rest can be arranged in 8! ways
Also for each case, you two can interchange your positions in 2! ways
Therefore,
The photographer can rearranged the line keep three people between you an your friend in
8! * 2! * 6 = 483 840 ways