; (B) not less than $1,700,000 shall be made available to Puerto Rico and not less than $390,000 shall be made available to the Virgin Islands, to remain available until expended, for grants under the Weatherization Assistance Program for Low-Income Persons established under part A of title IV of the Energy Conservation and Production Act ( 42 U.S.C. 6861 et seq.); and (C) not less $950,000 shall be made available to Puerto Rico and not less than $430,000 shall be made available to the Virgin Islands, to remain available until expended, for grants to carry out State energy conservation programs under part D of title III of the Energy Policy and Conservation Act ( 42 U.S.C. 6321 et seq.). (b) Low-Income Home Energy Assistance Program Out of funds of the Treasury not otherwise appropriated, there is appropriated to the Secretary of Health and Human Services $31,600,000 for fiscal year 2018, to remain available until expended, to provide, on a competitive basis, grants authorized under section 2602(a) of the Low-Income Home Energy Assistance Act of 1981 ( 42 U.S.C. 8621(a) ), to be allocated in accordance with any applicable formulas under that Act, of which— (1) $30,400,000 shall be made available to Puerto Rico; and (2) $1,200,000 shall be made available to the Virgin Islands. (c) Electricity Delivery and Energy Reliability Out of funds of the Treasury not otherwise appropriated, there is appropriated to the Electricity Delivery and Energy Reliability Account of the Department of Energy $6,500,000 for fiscal year 2018, to remain available until expended— (1) to conduct electricity delivery and energy reliability activities to modernize the electric grid in Puerto Rico and the Virgin Islands, including— (A) the use of demand responsive equipment; (B) enhancing the security and reliability of energy infrastructure; (C) providing for the conduct of research relating to, and the development, demonstration, and deployment of, energy storage; and (D) facilitating recovery from disruptions to the energy supply