Step b is wrong. The slope is the change in y over the change in x.
Step b should be (18- 8)/( 10-6)
= 10/4
= 5/2
Set 1 mean - 23.625
Set 2 mean - 23.5
Set 1 median - 23.5
Set 2 median - 22.5
This shows the answer is D :)
1- y= x/2 + 2
2- y= 3x +1
3- y= x/2 - 2
4- y= 3x - 1