Two people, A and B, start from A and B respectively, and walk back and forth between A and B continuously. When A walked back and forth 3 times, B walked back and forth exactly 5 times. During the journey of A and B, how many times have they met? (Meeting head-on and catching up are considered encounters)
甲、乙两人分别从A、B两地出发，在A、B两地之间不断往返行走．当甲走了3个来回的时候，乙恰好走了5个来回．在甲、乙两人行进的过程中，两人一共相遇了多少次？(迎面碰到和追上都算相遇)
<result>10</result>