There are two containers X and Y containing 40 litres each of liquid A and liquid B respectively. 10 litres of liquid A from X is taken and poured into Y, then 5 litres of the mixture from Y is taken and poured in X. What is the ratio of liquid B in X and Y?