04 Try it yourself Interactive
Choose the cheaper value, the dearer value and the target mean. The console places them, crosses the two subtractions, simplifies, and — if you give a total quantity — shares it out. Try setting a mean outside the two values and see it refused: that combination is impossible, not merely awkward.