Gulf of Maine
The gulf includes the entire coastlines of the U . S . states of New Hampshire and Maine , as well as Massachusetts north of Cape Cod , and the southern and western coastlines of the Canadian provinces of New Brunswick and Nova Scotia , respectively . 
<triplet> New Hampshire <subj> Massachusetts <obj> shares border with <triplet> Maine <subj> Massachusetts <obj> part of <subj> New Brunswick <obj> shares border with <triplet> New Brunswick <subj> Maine <obj> shares border with <subj> Nova Scotia <obj> shares border with <triplet> Nova Scotia <subj> New Brunswick <obj> shares border with