Assume the capacity of the container is ‘c’
and track down the milk which is retained.
The milk retained after taking first 9 litres from the container is (c × c−9/c )
The milk retained after taking next 9 litres from the container is ( c × c−9/c× c−9/c)
The volumes of milk and water in the container are now in the ratio of 16 : 9.
The milk in the container is 16/25
\(\frac{c×\frac{c−9}{c}×\frac{c−9}{c}}{c} = \frac{16}{25}\)
(c−9/c )2 = 16/25
c−9/c= 45/45
c = 45