Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

PLUS

Why answer B is wrong Quick Question 2 on Median

Hi, please advise how I get to the right answer. I added 10+8/2=9. 9 is between 8 and 10. How do I know which of these to select? thank you.

STAFF

Hi there, Michelle Rosenstock ! I had originally posted an answer, which was correct, but didn't actually address your question properly. Because you specified problem 2 and these are given in random order, I just went from the information in your question. My apologies

Now, to your actual question. Yes 9 is between 8 and 10, but you're not accounting for how many of there are of everything. There are thirty As, 10 Bs, 8 C's and 2 D's. A median is found at the midpoint of a sorted list. So let's do that. Let's see what that looks like:

```A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A B B B B B B B B B B C C C C C C C C D D
```

There are 50 grades total. The median will be at the halfway point which will be whatever resides at the twenty-fifth spot. So one more time with the 25th letter pointed out.

```A A A A A A A A A A A A A A A A A A A A A A A A  > A <  A A A A A B B B B B B B B B B C C C C C C C C D D

// The midpoint is the one in > < or the twenty-fifth spot
```

As you can see, the grade residing at the midpoint of that sorted list is an "A".

Hope this helps!

PLUS

Hi Jennifer, apologies for the belated response. Thank you so much, I really appreciate your thorough and clarifying answer.