Acid and water are mixed in a vessel A in the ratio of 5:2 and in the vessel B in the ratio of 8:5. In what proportion should quantities be taken out from the two vessels so as to form a mixture in which the acid and water will be in the ratio of 9:4?