Water is required to produce nearly all forms of energy. At the same time, electricity is needed to provide drinking…