To make a box and whisker plot, first you write down all of the numbers from least to greatest.
0, 1, 3, 4, 7, 8, 10
The median is 4, so that’s the middle line of the plot.
So now we have:
0, 1, 3, [4,] 7, 8, 10
So next we have to find the 1st and 3rd interquartiles..
0, [1,] 3, [4,] 7, [8,] 10
Those are the next 2 points you put on the plot.
Lastly, the upper and lower extremes. These are the highest and lowest numbers in the data.
[0,] 1, 3, 4, 7, 8, [10]
These are the final points on the plot.
To make the box of a box-and-whisker plot, you plot the 3 Medians of the data: 1, 4, and 8, and connect those to make a box that has a line in the middle at 4.
Next, you plot the upper and lower extremes: 0 and 10, by making “whiskers” that connect to the box. So you draw a line from the extremes to the box.
Let's assume
the number of bags of candy =x
the number of bags of cookies =y
There were 5 more bags of cookies sold than candy
so, we get

Bags of candy cost $5.50
so, total cost of candy is

bags of cookies cost $3.50
so, total cost of cookies is

so,
total cost = (total cost of candy)+(total cost of cookies)
we get
total cost =5.50x+3.50y
so, we can plug

now, we can plug y








now, we can find y



so,
the number of bags of candy =4
the number of bags of cookies =9............Answer