The following table shows the distribution of the number of pets owned by 15 families in a neighborhood:
| Number of pets | Number of families |
|---|---|
| 0 to 1 | 2 |
| 2 to 3 | 5 |
| 4 to 5 | 3 |
| 6 to 7 | 4 |
| 8 to 9 | 1 |
Which of the following values could represent the median number of pets owned by these families?
1
3
5
6