; (ii) the State vocational rehabilitation agency receiving assistance under title I of the Rehabilitation Act of 1973 ( 29 U.S.C. 720 et seq.); (iii) the agency responsible for administering the State Medicaid program under title XIX of the Social Security Act ( 42 U.S.C. 1396 et seq.); (iv) the State agency receiving assistance under the Older Americans Act of 1965 ( 42 U.S.C. 3001 et seq.); and (v) any other agency in a State that funds assistive technology. (6) State flexibility (A) In general Notwithstanding paragraph (1)(A) and subject to subparagraph (B), a State may use funds that the State receives under a grant awarded under this section to carry out any 2 or more of the activities described in paragraph (2). (B) Special rule Notwithstanding paragraph (1)(A), any State that exercises its authority under subparagraph (A)— (i) shall carry out each of the required activities described in paragraph (3)