Using the equations of fluid flow, Alejandro calculated the Reynolds number, the friction factor, and the head losses in the pipes. He realized that by replacing the old pipes with new, smooth ones, and optimizing the pump's operating conditions, he could significantly reduce energy consumption.