Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_40 (years VARCHAR, state VARCHAR, representative VARCHAR)
### 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"