The data shows the number of miles run per week by randomly selected students from two different classes. Find the difference between the medians which class has a higher median by how much.

To find the median of each class, we first need to arrange the data in ascending order:

Class A: 6, 7, 8, 9, 10
Class B: 5, 6, 6, 7, 8, 9, 10

For Class A:
- Median = (8 + 9) / 2 = 8.5

For Class B:
- Median = 7

Now, we can find the difference between the two medians:

Difference = |Median of Class A - Median of Class B|
Difference = |8.5 - 7| = 1.5

Therefore, Class A has a higher median by 1.5 miles.