Fruit salad/Minerals and vitamins/Table and matrix/Linear system/Example

A healthy breakfast starts with a fruit salad. The following table shows how much vitamin C, calcium and magnesium various fruits have (in milligram with respect to 100 gram of the fruit).
| apple | orange | grapes | banana | |
|---|---|---|---|---|
| vitamin C | ||||
| calcium | ||||
| magnesium |
My fruit salad today consists of the mentioned fruits with portions (meaning gram apple and so on). From that, one can calculate the total vitamin-C-amount, the calcium-amount and the magnesium-amount of the fruit salad, by simply multiplying for each fruit its portion with its specific amount, and summing up everything. The vitamin-C-amount of the complete fruit salad is thus
This operation is an example for how a matrix operates. The table yields immediately a -matrix, namely , and the above calculation is realized by the matrix multiplication
One can also ask for a fruit salad which has certain amounts of vitamin C, calcium and magnesium, say . This leads to the linear system of linear equations in matrix form,