Formulate an answer to this elaborate question: During what years did the Republican, in which John Lynch beat in the 2008 New Hampshire gubernatorial election, serve on the New Hampshire House of Representatives?
1995 until 2003