Solving a value mixture problem using a system of linear equations