; or (B) in the case of qualified homebuyers acquiring residences located in high-cost areas, as determined based on median home prices or prices of residences under a shared equity homeownership program. (e) Layering of assistance Assistance from grant amounts under this Act may be provided on behalf of a qualified homebuyer who is receiving assistance from other sources, including other State, Federal, local, private, public, and nonprofit sources, for acquisition of an eligible home. (f) State administration (1) In General The Secretary shall require that each State receiving grant amounts under this Act administer the program to provide assistance with such amounts through the State housing finance agency for the State or such other housing agency of the State as the Secretary finds appropriate, except that any such agency may, at the option of the agency, contract with a nonprofit entity, including a housing counseling agency approved by the Secretary, to administer such assistance. (2) Affirmatively furthering fair housing For a State to be eligible for a grant under this Act, the State shall be in compliance with the Secretary’s regulations implementing the requirement to affirmatively further fair housing. (3) Prohibition of priority or recoupment of funds In selecting qualified homebuyers for assistance with grant amounts under this Act, a State or eligible entity may not— (A) provide any priority or preference for homebuyers who are acquiring eligible homes with a mortgage loan made, insured, guaranteed, or otherwise assisted by the State housing finance agency for the State, any other housing agency of the State, or an eligible entity when applicable