How many ways can you place 5 x's and 4 o's in a 3 by 3 tic-tac-toe grid?
Make the 3 by 3 grid as 9 squares in a row. the number of ways to do this is 9 choose 5 or 9 choose 4, or 126.