2023 WSMO Accuracy Round Problems/Problem 4

Problem

Bob and his 3 friends are standing in a line of 10 people. Given that Bob is not on either end of the line, then the probability the person in front and behind Bob are both his friends is $\frac{m}{n},$ for relatively prime positive integers $m$ and $n.$ Find $m+n.$

Solution