A solid metal cube of side 3 cm is placed in a rectangular tank of…