; (2) by redesignating paragraph (4) as paragraph (5); and (3) by inserting after paragraph (3) the following new paragraph: (4) Treatment of funding for certain fiscal years (A) Puerto Rico Notwithstanding paragraph (1)(B), in the case that Puerto Rico establishes and submits to the Secretary a plan described in paragraph (2) with respect to any of fiscal years 2020 through 2022, the amount specified in paragraph (3) for Puerto Rico for such a year shall be taken into account in applying subparagraph (A)(ii) of section 1108(g)(2) for such year. (B) Other territories Notwithstanding paragraph (1)(B), in the case that the Virgin Islands, Guam, the Northern Mariana Islands, or American Samoa establishes and submits to the Secretary a plan described in paragraph (2) with respect to any of fiscal years 2020 through 2025, the amount specified in paragraph (3) for the Virgin Islands, Guam, the Northern Mariana Islands, or American Samoa, as the case may be, shall be taken into account in applying, as applicable, subparagraph (B)(ii), (C)(ii), (D)(ii), or (E)(ii) of section 1108(g)(2) for such year. . (c) Increased FMAP Section 1905 of the Social Security Act ( 42 U.S.C. 1396d(b) ) is amended— (1) in subsection (b), by striking and (aa) and inserting (aa), and (ff) ; and (2) by adding at the end the following new subsection: (ff) Temporary increase in FMAP for territories for certain fiscal years (1) Puerto Rico Notwithstanding subsection (b), the Federal medical assistance percentage for Puerto Rico shall be equal to— (A) 83 percent for fiscal years 2020 and 2021; and (B) 76 percent for fiscal years 2022 and 2023. (2) Virgin Islands Notwithstanding subsection (b), the Federal medical assistance percentage for the Virgin Islands shall be equal to— (A) 100 percent for fiscal year 2020; (B) 83 percent for fiscal years 2021 through 2024