When container A was filled with water to the brim, the volume of water in it
was lwh=(25)(30)(40).
Then, some water from A was poured into B (when B was empty), until the height
of the water in both containers was the same.
Let that common height be the unknown x.
So the height of the water in A went down from 40 to x. Therefore the volume
of water in A was reduced to lwh=(25)(30)x.
and
the height of the water in B went up from 0 to x. Therefore the volume of water
in B went up from 0 to lwh=(25)(18)x.
Then the sum of the volumes of water in both containers afterward was the same
amount of water as was in container A at the beginning, so we have an equation:
(25)(30)x + (25)(18)x = (25)(30)(40)
Solve that for x and you'll get the correct answer.
[Note. You may connect this problem to something you may have learned in your
science class as to how to get the water levels the same. Although the problem
says the water was 'poured' from A to B, a better (or at least more scientific)
way to get the levels the same would be to use a siphon. A siphon is a water-
filled tube connecting the water in the two containers. The water at the bottom
of A must support the heavy weight of all the water above it, so the upper water
in A will "push down" on the lower water in A forcing water to flow up the tube
from A into B. The heavy upper water in A will continue to "push down" on the
lower water in A, forcing water up the tube from A into B, until the water
levels are the same.]
Edwin