Question
Two casks A and B were filled with two kinds of sherry, mixed in the cask A in the ratio of 2:7, and in the cask B in the ratio of 1:5. What quantity must be taken from each to form a mixture which shall consist of 2 gallons of one kind and 9 gallons of the other?