I prefer to work problems like this in general terms, and then plug our given data into the resulting formula.
First, let's let:
\(\displaystyle R\) = the radius of the hemispherical tank.
\(\displaystyle \rho\) = the weight density of the fluid.
\(\displaystyle g\) = the acceleration due to gravity.
Now, let's imagine slicing the contents of the tank horizontally into circular sheets. The radius of each sheet will be a function of its distance from the base of the tank. So, let's orient a vertical \(\displaystyle y\)-axis passing through the axis of symmetry of the tank, with its origin at the base of the tank.
The circular portion of the cross-section of the tank containing our \(\displaystyle y\)-axis will lie on the circle:
\(\displaystyle \displaystyle x^2+y^2=R^2\)
And so, for any circular sheet, its radius will be the \(\displaystyle x\)-coordinate of a horizontal line passing through the circle, and so we may state:
\(\displaystyle \displaystyle r^2=R^2-y^2\)
Hence, the volume of an arbitrary sheet can be given by:
\(\displaystyle \displaystyle dV=\pi\left(R^2-y^2 \right)\,dy\)
Next, we want to determine the weight \(\displaystyle w\) of this sheet. Using the definition of weight density, we may state:
\(\displaystyle \displaystyle \rho=\frac{w}{dV}\,\therefore\,w=\rho\,dV\)
Next, we observe that the distance \(\displaystyle d\) this sheet must be lifted is:
\(\displaystyle \displaystyle d=R-y\)
Thus, using the fact that work is the product of the applied force and the distance through which this force is applied, we find the work done to lift the arbitrary sheet is:
\(\displaystyle \displaystyle dW=wd=\pi\rho(R-y)\left(R^2-y^2 \right)\,dy\)
Distributing, we find:
\(\displaystyle \displaystyle dW=\pi\rho\left(R^3-R^2y-Ry^2+y^3 \right)\,dy\)
Now, if \(\displaystyle y_i\) is the initial depth of fluid in the tank, and \(\displaystyle y_f\) is the final depth, where \(\displaystyle 0\le y_f<y_i\le R\), then the total amount of work required to pump out the required amount of fluid is given by:
\(\displaystyle \displaystyle W=\pi\rho\int_{y_f}^{y_i} R^3-R^2y-Ry^2+y^3\,dy\)
Applying the FTOC, there results:
\(\displaystyle \displaystyle W=\pi\rho\left[R^3y-\frac{1}{2}R^2y^2-\frac{1}{3}Ry^3+\frac{1}{4}y^4 \right]_{y_f}^{y_i}=\frac{\pi\rho}{12}\left[12R^3y-6R^2y^2-4Ry^3+3y^4 \right]_{y_f}^{y_i}\)
And so we find:
\(\displaystyle \displaystyle W=\frac{\pi\rho}{12}\left(y_i-y_f \right)\left(12R^3-6R^2\left(y_i-y_f \right)-4R\left(y_i-y_f \right)^2+3\left(y_i-y_f \right)^3 \right)\)
Can you use this formula now to get the desired answer?