Solving a value mixture problem using a linear equation