Pine State Trading Co. — a family-owned beverage distribution company headquartered in Gardiner — agreed to merge its Maine and New Hampshire operations with national distribution platform KEG 1 LLC.