Read on to understand my question at the end.
Problem 1: How much work to lift cable?
A machine lifts a 180ft steel cable weighing 4.5lb/ft. Assume when the cable is at maximum length, y = 0. Work done by the machine?
W = $\int_{0}^{180} 4.5(180 - y) \hspace{.3cm}dy$
Problem 2: How much work to drain tank by pumping water to ground level?
A rectangular tank, with it's top at ground level, and volume of 2400$ft^3$, is filled to the brim with water weighing 62.4lb/$ft^3$. The height of the tank is 20ft. Work to drain tank by pumping water to ground level?
At first, I thought this was the answer, based on problems similar to the first one:
W = $\int_{0}^{20} 62.4(2400 - y) \hspace{.3cm}dy$
However, the solution is:
W = $\int_{0}^{20} (62.4*2400)y \hspace{.3cm}dy$
Can someone explain the difference in logic between the two problems?