A bakery makes three products — bread, cake and cookies. The recipe matrix records how many grams of each ingredient one unit of each product consumes. Rows are ingredients, columns are products:
| Bread | Cake | Cookies | |
|---|---|---|---|
| Flour | |||
| Sugar | |||
| Butter |
Today's production plan is the vector
Ingredient prices, in rupees per gram, are for flour, for sugar and for butter:
First compute , the grams of each ingredient the plan consumes. Then report the total ingredient cost of the day's production, in rupees.
Your answer is a whole number of rupees.