to receive a grant under this section. (e) Allocation of grant funds (1) In general Subject to paragraph (2), the Secretary shall provide to each eligible entity that submits an application approved by the Secretary under subsection (c)(3) a grant in accordance with this section. (2) Allocation (A) In general The Secretary shall allocate grant funds to eligible entities described in paragraph (1) in accordance with the formula established under paragraph (3), subject to the conditions described in subparagraph (B). (B) Conditions for healthy green retrofit projects In allocating grant funding to carry out projects described in subsection (b)(1), the Secretary shall make allocations as follows: (i) The amount of a grant provided under this section to an eligible entity that uses such amount to serve a public school ranked as one of the 1/3 most vulnerable schools in the United States, based on the vulnerability ranking, a local educational agency applying on behalf of such a school, or any BIE school or school funded by BIE, shall be sufficient to cover 100 percent of cost of carrying out a project described in subsection (b)(1). (ii) The amount of a grant provided under this section to an eligible entity that uses such amount to serve a public school ranked as one of middle 1/3 of schools in the United States, based on the vulnerability ranking, or a local educational agency applying on behalf of such a school, shall be sufficient to cover 2/3 of the cost of carrying out a project described in subsection (b)(1). (iii) The amount of a grant provided under this section to an eligible entity that uses such amount to serve a public school ranked as one of the 1/3 least vulnerable schools in the United States, based on the vulnerability ranking, or a local educational agency applying on behalf of such a school, shall be sufficient to cover 1/3 of the cost of carrying out a project described in subsection (b)(1). (C) Loans (i) In general An eligible entity described in clause (ii) or (iii) of subparagraph (B) may