39. The participant who, following the amalgamation or annexation of the municipality of which he is member of the council, holds office as a member of the council in the new municipality resulting from the amalgamation or in the annexing municipality, as the case may be, shall continue to benefit by the pension plan by which he was then benefiting and he and the municipality of which he becomes a member of the council must discharge the obligations resulting from such plan.