; and (B) meets such requirements as the Secretary shall establish to ensure that the project promotes— (i) transit-oriented development; (ii) reclaiming and re-use of grayfields; (iii) development of affordable housing; (iv) removal of existing grayfield infrastructure; (v) such other priorities as the Secretary considers appropriate, including with respect to smaller jurisdictions and non-metropolitan areas; or (vi) any 2 or more of the priorities specified in or pursuant to this subparagraph. (3) Amount The amount of a grant pursuant to this section may not exceed $5,000,000. (4) Matching requirement The Secretary shall require each eligible public entity or designated public agency to which a grant is made pursuant to this subsection to contribute to the project for which the grant is made an amount from sources other than the grant, including local and State tax abatements, in-kind contributions, and Federal tax incentives, that exceeds 50 percent of the amount of the grant. (5) Preference In making grants pursuant to this section, the Secretary shall give preference to eligible public entities and designated public agencies based on the extent to which— (A) the amount proposed to be contributed pursuant to paragraph (4) exceeds the minimum amount required by such paragraph to be contributed; (B) the project reflects the results of extensive community engagement; and (C) the project would benefit lower-income, underserved communities. (6) Technical assistance (A) HUD The Secretary shall, in accordance with section 102 of the Department of Housing and Urban Development Reform Act of 1989 ( 42 U.S.C. 3545 ), provide technical guidance and assistance to applicants for grants under this subsection regarding— (i) how to apply for grants under this subsection