Two bottles A and B contain diluted acid. In bottle A, the amount of water is double the amount of acid while in bottle B, the amount of acid is 3 times that of water. How much mixture(in litres) should be taken from each bottle A and B respectively in order to prepare 5 liters diluted acid containing an equal amount of acid and water?