; (B) costs directly attributable to administrative activities related to the provision of such DRM assistance; and (C) DRM assistance provided in accordance with paragraph (2) or (3) of subsection (b) after the end of the DRM coverage period. (2) Limitation (A) Territories Payments provided to a State that is a territory (as defined in section 1108(c)(1) of the Social Security Act ( 42 U.S.C. 1308(c)(1) )) in accordance with this subsection shall be subject to subsections (f) and (g) of section 1108 of the Social Security Act ( 42 U.S.C. 1308 ). (B) Other States (i) In general In the case of States not described in subparagraph (A), the difference between— (I) the total amount of payments made to such States in accordance with this subsection, by reason of the Federal medical assistance percentage or the Federal matching rate applied under paragraph (1)