To get the mean of a set of data, the steps are to add all the data and divide by the total number of data.
![\bar{x}=(95.1+97.0+96.2+96.5+96.7)/(5)](https://img.qammunity.org/2023/formulas/mathematics/college/bfrp7btweat0ynkkdwqikhcga8n9g6wi0r.png)
Then, solve.
![\bar{x}=(481.5)/(5)=96.3](https://img.qammunity.org/2023/formulas/mathematics/college/magjvar75v1f77dqun7qpslxt9n1e4b7uf.png)
The mean is 96.3 grams.
On the other hand, the median of a set of data is the middlemost data once the data has been arranged from lowest to highest or vice versa.
Let's arrange the data first.
![95.1,96.2,96.5,96.7,97.0](https://img.qammunity.org/2023/formulas/mathematics/college/ath68n8ttb08wyr6wwxox5b3ipvcjg8ipi.png)
Out of the 5 data, the middlemost data would be the third one. Hence, the median is 96.5 grams.