If the legislation of a Contracting Party is applicable to a person, then the periods of insurance, which are to be taken into consideration according to that legislation, shall be totalized in accordance with Article 24, in so far as these periods do not overlap.