Section 12. Any child, with the consent of the school committee of the town where he resides, may attend, at the expense of said town, the public schools of another town, upon such terms as may be fixed by the two committees.