; and (2) a cost-sharing agreement with the funding amounts that the entity that owns or controls the right-of-way shall contribute to the project, which shall be not less than 10 percent of the total project cost. (c) Eligible projects The following projects are eligible to receive a grant under this section: (1) Installation, repair, or improvement of grade crossing separations. (2) Grade crossing elimination incidental to eligible grade crossing separation projects. (3) Project planning, development, and environmental work related to a project described in paragraph (1) or (2). (d) Project selection criteria (1) Large projects Of amounts made available to carry out this section, not more than 50 percent shall be available for projects with total costs of $100,000,000 or greater. (2) Considerations In awarding grants under this section, the Secretary— (A) shall give priority to projects that maximize the safety benefits of Federal funding