SSC CHSL 30 May 2022 Shift 1 — Question 75 (Arithmetic)

Medium2022
A beaker contains a mixture of two liquids X and Y in the ratio 5 : 3. When 6 litres of the mixture is drawn off and then replaced with Y, the ratio of X and Y becomes 5 : 7. How many litres of liquid X was contained in the beaker initially?