PUMaC 2009 Combinatrics B Problem 1

Three people, John, Macky, and Rik, play a game of passing a basketball from one to another. Find the number of ways of passing the ball starting with Macky and reaching Macky again on the 7th pass.