A number is between 30 and 40. When it is divided by 5, the remainder is 1. When it is divided by 8, the remainder is 7. What is the number?
Multiples of 5: 5, 10, 15, 20, 25, 30, 35, 40
Multiples of 5 (+1): 6, 11, 16, 21, 26, 31, 36, 41
Multiples of 8: 8, 16, 24, 32, 40
Multiples of 8 (+7): 15, 23, 31, 39, 47
Common number between 30 and 40 = 31
Answer(s): 31