Q: The task is to generate the correct answer for a given math problem.
Problem: a can contains a mixture of liquids a and b is the ratio 7 : 5 . when 18 litres of mixture are drawn off and the can is filled with b , the ratio of a and b becomes 7 : 9 . how many liter of liquid a was contained by the can initially ?
A:
42