; and (B) if the Secretary determines that any funds were not so allocated for such previous year, allocate such remaining funds to States for such year, in accordance with paragraph (2). (2) Allocation methodology For purposes of paragraph (1), of the total remaining funds to be allocated for a year pursuant to such paragraph, the Secretary shall allocate to each State an amount that bears the same ratio to such total remaining funds as the amount allocated pursuant to subsection (b) to such State for such year bears to the total allocations made under such subsection for such year. .