If you can get your head around this explanation, perhaps it will save you a lot of time in writing equations (and also lessen your chances of making a stupid mistake!).
Argument:
Acute observation of averages tells us:
Total loss/gain of a quantity as a result of addition/removal/replacement to/from the original set, must be equal to the total change in the quantity.
Loss/gain = number of parts impacted * (deviation from the earlier average).
Total change in quantity = |(New average - Old average)| * total number of parts.
Looking at the question in this thread:
solution having 25% strength replaced x parts of solution having 40% strength, thus total loss = (40-25)*x
Total change in quantity = (40 - 35) * 1 (1 because we are finding the fraction, 100 if we want the percentage and so on...)
So, as we are reading the question, with practice we should be able to write 15x = 5 on the scratch pad almost instantaneously.
Rest is arithmetic...
This type of question can come in various formats, but almost always only one part of the equation would be missing, it could be the total change in quantity, or the new average, or as it was here, change in number of parts...
HTH
Cheers,
Dubes