@LalaB
Could u please explain me this -(1-15/x)*15?
I think you meant [(X-15)/X] * 15
When you do the replacement for the first time, its straightforward, (You remove 15 Lts of A and replace it by 15 Lts of B)
When this is done the second time, while removing the 15 Lts, you remove some quantity of A and some of B.
To find quantity of A remaining, we need to find the amount of A removed in the 2nd step.
For ease of explanation, consider concentration of A to be 20% (remaining is B 80%) in a 100 Ltr solution. Now if we remove 20 Lts of this solution, quantity of A removed could be found by;
(20/100 )* 20 = 4 Lts (Quantity of A/Total Quantity) * Amount Removed.
Now, [(X-15)/X] * 15 is the same thing as above
X-15 - Quantity of A
X - Total quantity
15 - Amount removed.
Hope it makes sense