Section 45. If a town purchases a gas or electric lighting plant having mains, poles, wires or other distributing apparatus in an adjoining town where there is no private gas or electric lighting company, it may also purchase such mains, poles, wires or other distributing apparatus therein, subject to sections forty-two and forty-three.