Two ways to solve the equations
The obvious approach is just to solve a set of
simultaneous linear equations, one per meal.
But we want a method that could be
implemented in a neural network.
The prices of the portions are like the weights in
of a linear neuron.
We will start with guesses for the weights and
then adjust the guesses to give a better fit to the
prices given by the cashier.