We to need to solve volumes of the first tank ( a rectangular prism) and solid log (a cylinder).
The solution for the volume of the fish tank is shown below:
volume = l*w*h
volume = 40*17*26
Volume = 17,680 in³
Only 95% filled with water:
Volume filled w/ water = 17, 680 *0.95 = 16,796 in³
The solution for the volume of the solid log:
Volume = pi*r²*h
Volume = 3.14*3²*33 = 932.58 in²
The volume of the remaining water spilled out is shown below:
Remaining water volume = 16, 796 in³ - 932.58 in² =15,863.42 in²
Volume spilled out = 932.58 in³