9 years ago was the final episode of the season 2 of The X Factor, where Britney appeared as a judge and coach of the teens group.
Tate Stevens resulted as the winner, with Carly Rose Sonenclar as the runner-up.
You can see more about her participation on the show on this thread (scroll through the last pages to see about each episode)
And the full list of episodes: