Answer:


Explanation:
Given weights of the dogs :
38 , 40 , 42 , 46 , 45 , 39 , 42 , 40
Find the sum of the whole data:
sum of all items ( Σx ) = 38 + 40 + 42 + 46 + 45 + 39 + 42 + 40 = 332
Number of items ( n ) = 8
To find mean, divide the sum by the total number of data.
Finding the mean weights:

⇒

⇒

Mean weights = 41.5
-----------------------------------------------------------------------
Finding the median
To find the median, arrange the given data in ascending order.
Given data : 38, 40 , 42 , 46 , 45 , 39 , 42 , 40
Arranging the data in ascending order :
38 , 39 , 40 , 40 , 42 , 42 , 45 , 46
Total number of observation ( n ) = 8
Finding the position of median

⇒

⇒

⇒

4.5 th item is the average of 4 th and 5th items .
Here, 4 th item = 40
5 th item = 42
Finding the median

⇒

⇒

⇒

Hope I helped!
Best regards!!