Question: What is the capital of the state where Daniel Goodenow served three one year terms in the House of Representatives?

full_context: Document 1: Seacoast Region (New Hampshire): The Seacoast Region is the southeast area of the U.S. state of New Hampshire that includes the eastern portion of Rockingham County and the southern portion of Strafford County. The region stretches 13 mi along the Atlantic Ocean from New Hampshire's border with Salisbury, Massachusetts to the Piscataqua River and New Hampshire's border with Kittery, Maine. The shoreline is generally very rocky and rough in nature, although a few sandy beaches have been created using jetties/groins, particularly in the towns of Rye and Hampton. The Seacoast Region stretches as far west as Epping. Portsmouth, the largest municipality and only city in Rockingham County, serves as the cultural and commercial hub of the region. Portsmouth has numerous historical landmarks and tourist attractions including Strawberry Banke, the Moffatt-Ladd House, the John Paul Jones House, and the Portsmouth Children's Museum, which moved to Dover in 2010. The Seacoast Region was the first area of the state to be permanently settled by Europeans in the early 17th century.
Document 2: Richard Hewes: Richard David Hewes (August 16, 1926 – July 8, 2014) was an American politician from Cape Elizabeth, Maine. A Republican, Hewes served as Speaker of the Maine House of Representatives from 1973 to 1974. Another Republican Speaker was not elected until Robert Nutting in December 2010.
Document 3: Massachusetts: Massachusetts ( or ), officially the Commonwealth of Massachusetts, is the most populous state in the New England region of the northeastern United States. It is bordered by the Atlantic Ocean to the east, the states of Connecticut and Rhode Island to the south, New Hampshire and Vermont to the north, and New York to the west. The state is named for the Massachusett tribe, which once inhabited the area. The capital of Massachusetts and the most populous city in New England is Boston. Over 80% of Massachusetts's population lives in the Greater Boston metropolitan area, a region influential upon American history, academia, and industry. Originally dependent on agriculture, fishing and trade, Massachusetts was transformed into a manufacturing center during the Industrial Revolution. During the 20th century, Massachusetts's economy shifted from manufacturing to services. Modern Massachusetts is a global leader in biotechnology, engineering, higher education, finance, and maritime trade.
Document 4: The Maine Mall: The Maine Mall, also known as Maine Mall, built in 1971, is an enclosed shopping mall located in South Portland, Maine, a suburb of Portland. At 1200000 sqft , it is the largest shopping mall in the state of Maine, and the largest in northern New England. Anchored by Best Buy, JCPenney, Macy's, and Sears, the mall features over 140 tenants, a food court and several ancillary restaurant/retail pad sites.
Document 5: John H. Goodenow: John Holmes Goodenow (1833-?) was an American politician from Maine. Goodenow, a resident of Alfred, Maine, served one term in the Maine House of Representatives (1859) and two terms in the Maine Senate (1861-1862). During both terms in the Maine Senate, Goodenow was elected Senate President. His father, Daniel Goodenow was a Whig politician and two-time Maine Attorney General and Associate Justice of the Maine Supreme Judicial Court.
Document 6: Maine's 2nd congressional district: Maine's 2nd congressional district is a congressional district in the U.S. state of Maine. Covering 27326 sqmi , it comprises nearly 80% of the state's total land area. It is the largest district east of the Mississippi River and the 24th-largest overall. It is the second-most rural district in the United States, with 72.11% of its population in rural areas, behind only Kentucky's 5th congressional district.
Document 7: Mount Desert Island: Mount Desert Island (often abbreviated MDI), in Hancock County, Maine, is the largest island off the coast of Maine. With an area of 108 sqmi it is the 6th largest island in the contiguous United States. It is the second-largest island on the Eastern seaboard, behind Long Island and ahead of Martha's Vineyard. According to the 2010 census, the island has a year-round population of 10,615, although it is estimated that two and a half million tourists a year visit Acadia National Park on the island. The island is home to numerous well-known summer colonies such as Northeast Harbor and Bar Harbor.
Document 8: Dana Childs: Dana Childs (December 15, 1922 – April 23, 1999) was a Maine politician, lawyer and jurist. Childs, who served as both a Democrat and Republican, represented Portland in the Maine House of Representatives. He served a two-year stint as Speaker of the Maine House of Representatives as a Democrat from 1965 to 1966. In 1966, Childs ran for the Democratic nomination for Governor of Maine, but lost to eventual Governor Kenneth M. Curtis.
Document 9: Lewiston, Maine: Lewiston ( , ; officially the City of Lewiston, Maine) is the second largest city in Maine and the most central city in Androscoggin County. The city has a population of 36,202. Located in south-western Maine, the city borders the coastal sideways of the Gulf of Maine and is south of Augusta, the state's capital and north of Portland, the cultural hub of Maine. It is one-half of the Lewiston-Auburn Metropolitan Statistical Area, commonly referred to as "L.A." or "L-A." Lewiston exerts a significant impact upon the diversity, religious variety, commerce, education, and economic power of Maine. It is known for a relatively low cost of living, substantial access to medical care, and an extremely low violent crime rate. While the dominant language spoken in the city is English, it is home to the largest French-speaking population in the state; the language is spoken by nearly 15% of locals.
Document 10: Mark Lawrence (politician): Mark W. Lawrence (born June 27, 1958) is an American lawyer and politician from Maine. He was born in Kittery, Maine, the Democrat, Lawrence served in the Maine State Legislature from 1988-2000. He was elected as the President of the 118th Maine Senate in December 1996 and then elected as President of the 119th Maine Senate in December 1998, serving in that capacity until 2000. He challenged Republican incumbent Olympia Snowe in the 2000 U.S. Senate election and lost. He lost in the Democratic primary for the open seat in the 1st congressional district in 2008. He served from 2003-2010 as the York County District Attorney and did not seek re-election in 2010. He returned to private practice in South Berwick, Maine. In November 2016, he was elected to the Maine House of Representatives.
Document 11: Maine: Maine ( ) is the northernmost state in the New England region of the northeastern United States. Maine is the 39th most extensive and the 41st most populous of the U.S. states and territories. It is bordered by New Hampshire to the west, the Atlantic Ocean to the southeast, and the Canadian provinces of New Brunswick and Quebec to the northeast and northwest respectively. Maine is the easternmost state in the contiguous United States, and the northernmost east of the Great Lakes. It is known for its jagged, rocky coastline; low, rolling mountains; heavily forested interior, and picturesque waterways; and also its seafood cuisine, especially clams and lobster. There is a humid continental climate throughout the state, even in coastal areas such as its most populous city of Portland. The capital is Augusta.
Document 12: Daniel Goodenow: Daniel Goodenow (October 30, 1793 – October 7, 1863) was an American politician and jurist from Maine. Goodenow was born in Henniker, New Hampshire and was primarily self-educated, though he did graduate from Dartmouth College. He studied law under future U.S. Senator John Holmes and was admitted to the York County, Maine Bar in 1817. Residing in Alfred, Maine, Goodenow served three one year terms in the Maine House of Representatives (1827, 1828 and 1830), which included a term as Speaker of the Maine House of Representatives. He was a member of the National Republican Party while in the Legislature. In 1831, Goodenow was the Whig Party candidate for Governor. Unsuccessful, he ran again in 1832 and 1833. In 1838 and 1841, Goodenow served as Maine Attorney General.
Document 13: John Holmes (Maine politician): John Holmes (March 14, 1773 – July 7, 1843) was an American politician. He served as a U.S. Representative from Massachusetts and was one of the first two U.S. Senators from Maine. Holmes was noted for his involvement in the Treaty of Ghent.
Document 14: Eastport, Maine: Eastport is a small city (consisting entirely of islands) in Washington County, Maine, United States. The population was 1,331 at the 2010 census. The principal island is Moose Island, which is connected to the mainland by causeway. Eastport is the easternmost city in the United States (although the nearby town of Lubec is the easternmost municipality).
Document 15: Daniel Clark (New Hampshire politician): Daniel Clark (October 24, 1809January 2, 1891) was an American politician who served in the New Hampshire legislature and the United States Senate.
ground_truth: Augusta