# Calculation of 3 eqns at once and calculating the cost of the three items given the total

1 view (last 30 days)
Joe Ainsworth on 12 Sep 2021
Commented: Joe Ainsworth on 13 Sep 2021
Hi all i am trying to calculate a question regarding the prices of each item if you are given a total.
how would i calculate the prices of items given that:
Ben spent \$18.25 on one pizza, five cans of coke and two bars of chocolate.
Jez spent \$17.30 while buying two pizzas, one can of coke and three bars of chocolate.
Cath spent \$23.50 while buying three pizzas, seven cans of soft drink and one chocolate bar.
i need to calcualte individual price for the three items and formulate the equations
im not sure where to start with this and any help would be greatly appreciated!
Joe Ainsworth on 13 Sep 2021
worked it out @Walter Roberson thanks for the help

### Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

R2021a

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by