The work needed to pump the water would have the units of Joules or Pa*m^3. From here, this would be a hint that you only multiply the hyraulic pressure and its volume.
Hydraulic pressure = density*gravity*height = 1000*9.8*3.1 = 30,411 Pa
Volume = 21*14*3.1 = 911.4 m^3
Work = 30,411*911.4 = 27,716,585.4 J = 27.72 MJ