Artificial intelligent assistant

Two vessels contain milk and water in the ratio 5:2 and 4:1 Find the quantity of the mixture from the first vessel to be mixed .... Two vessels contain milk and water in the ratio 5:2 and 4:1 Find the quantity of the mixture from the first vessel to be mixed with 20 lts of the mixture from the second vessel. So that the mixture formed has milk and water in the ratio 3:1. I am not getting any idea how to proceed on this question, request you to please guide on this.. will be of great help. Thanks.

Hint:

Let the required quantity be $(5+2)x$ lts

So, we have

$$\dfrac31=\dfrac{\dfrac5{5+2}\cdot7x+\dfrac4{4+1}\cdot20}{\dfrac2{5+2}\cdot7x+\dfrac1{4+1}\cdot20}$$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 773b377c887375a462210952de717c62