The total capacity of the park's fountain is 2477 litres. If each tank of water is 95 litres, then calculate the value of A and B.