; and (ii) in which the economic contribution of coal mining has significantly declined. (4) Stakeholder collaboration The project has been— (A) the subject of project planning under subsection (g); and (B) the focus of collaboration, including partnerships, as appropriate, with interested persons or local organizations. (5) Eligible applicants The project has been proposed and will be executed by entities of State, local, county, or tribal government, which may include subcontracting project-related activities, as appropriate. (d) Distribution of funds (1) Uncertified States (A) In general Of the amount made available under subsection (b), the Secretary shall distribute $195,000,000 for each of fiscal years 2018 through 2022 to States and Indian tribes that have a State program approved under section 405 or are referred to in section 402(g)(8)(B), and have not made a certification under section 411(a) in which the Secretary has concurred, as follows: (i) Fiscal years 2018 and 2019 For each of fiscal years 2018 and 2019, the Secretary shall allocate to each State and Indian tribe the funds through a formula based on the quantity of coal historically produced in each State or from the land of each Indian tribe before August 3, 1977. (ii) Fiscal years 2020 through 2022 For each of fiscal years 2020 through 2022, the Secretary shall allocate to each State and Indian tribe— (I) the amount allocated to the State or Indian tribe for fiscal year 2018, plus any amount reallocated to the State or Indian tribe under this paragraph, if the State or Indian tribe has committed the full amount of the allocation of the State or Indian tribe for the preceding fiscal year to eligible projects