This year, Central Middle School is having a bake sale. Two teams of students bake cookies.
- Josie's team sells cookies in boxes of 36.
- Rich's team sells cookies in bags of 20.
After the bake sale, 1 box and 1 bag of cookies remained. The organizers decided to give the remaining cookies to the 6 students on the teams. Each student received the same number of cookies.
What is the largest number of cookies each student could have received?