This would give you the correct cost for the first mixture, but not for the second. You probably made an addition error when combining the two equations to eliminate a variable. You should be starting with the two equations: and . Multiply the first equation by and add this to the second equation.