question: James Hutchins Johnson, from New Hampshire, served during what years?
answer: SELECT years FROM table_name_40 WHERE state = "new hampshire" AND representative = "james hutchins johnson"
context: CREATE TABLE table_name_40 (years VARCHAR, state VARCHAR, representative VARCHAR)