Note that the mass is not constant because water drips out at a steady rate. We can express the mass in terms of t since we know it takes 14 minutes to reduce by 2kg. The force due to the mass is mass times acceleration due to gravity. Also v = 35/14 = 2.5m/s which is constant
The displacement at any time is dx = v dt
m = 30 - 2t/14 = 30 -t/7
Work = ∫F dx = mg. v dt = ∫(9.8)[30 -t/7] (2.5) dt = 24.5∫[30 -t/7]dt = 24.5[30t -t2/7]14o =(24.5) [420 - 28] = 9604N