Solve the system
Compute the average price per unit. Dividing the total value by the total count gives the blended rate:
It lies between and , as it must — an average outside that range would signal an inconsistent problem.
Use the alligation (lever) relation. The distances from the average to the two prices are inversely proportional to the quantities:
This is the weighted-average shortcut: the cheaper item pulls the mean down in proportion to how much of it there is.
Convert to a single equation and solve exactly. Rather than working with the rounded average, clear the decimals directly. Multiplying the value equation by and substituting :
Find from the total.
Both values terminate exactly in decimals here, since has denominator after reduction.
Check the value equation and the ratio. . The ratio check: , and , confirming the alligation reasoning agrees with the algebra.
Need to solve a different problem like this? Open the solver →