a science teacher had a supply of 50% methane solution and a supply of 80% methane solution. how much of each solution should the teacher mix to get 105 ML of 60% methane solution for an experiment?

I'm going through a review for basically a final and i have the answer to this i just need help understanding how to get that answer and how to do the work.

thanks so much

If he has x mL of 50%, then the rest (105-x) is 80%.

So, equate the methane in the parts with that in the whole.
0.50x + 0.80(105-x) = 0.60*105
Now work your magic.