You have 3 choices of axes along which to integrate. I would choose the axis along which the side length of 5 lies, since the triangular cross-sections remain constant. So we could write the volume of an arbitrary slice as follows
\(\displaystyle dV=\dfrac{1}{2}3\cdot4\,dx=6\,dx\)
Summing the slices by integration, we then have the volume in units cubed:
\(\displaystyle \displaystyle V=6\int_0^5\,dx=6(5-0)=30\)
Now, suppose we are instructed to use another axis along which to integrate.
Height:
Here, we would have rectangular slices. The base of each slice would be constant at 5 units, but the height would be a linear function of the independent variable. We know from the slope-intercept formula we would have:
\(\displaystyle h(x)=-\dfrac{4}{3}x+4\) and so we may state:
\(\displaystyle dV=bh=5\left(-\dfrac{4}{3}x+4 \right)\,dx\)
Summing the slices by integration, we then have the volume in units cubed:
\(\displaystyle \displaystyle V=5\int\left(-\frac{4}{3}x+4 \right)\,dx=5\left[-\frac{2}{3}x^2+4x \right]_0^3=5\left(-6+12 \right)=5\cdot6=30\)
Width:
Here we would also have rectangular slices. The base of each slice would be constant at 5 units, but the height would be a linear function of the independent variable. We know from the slope-intercept formula we would have:
\(\displaystyle h(x)=\dfrac{3}{4}x\) and so we may state:
\(\displaystyle dV=bh=5\left(\dfrac{3}{4}x \right)\,dx=\dfrac{15}{4}x\,dx\)
Summing the slices by integration, we then have the volume in units cubed:
\(\displaystyle \displaystyle V=\frac{15}{4}\int_0^4 x\,dx=\frac{15}{8}\left[x^2 \right]_0^4=\frac{15}{8}\cdot4^2=30\)