; bears to (ii) the total amount of funds apportioned to all States for such program for fiscal year 2020. (5) National highway freight program For the national highway freight program, 3.38 percent of the amount remaining after distributing amounts under paragraphs (4), (6), and (7). (6) Metropolitan planning (A) In general For metropolitan planning, an amount determined for the State under subparagraphs (B) and (C). (B) Total amount The total amount for metropolitan planning for all States shall be— (i) $507,500,000 for fiscal year 2022; (ii) $516,381,250 for fiscal year 2023; (iii) $526,708,875 for fiscal year 2024; and (iv) $536,189,635 for fiscal year 2025. (C) State share For each fiscal year, the Secretary shall distribute among the States the amount for metropolitan planning under subparagraph (B) so that each State receives an amount equal to the proportion that— (i) the amount apportioned to the State for metropolitan planning for fiscal year 2020