Josh has a bag of marbles. If he puts them in groups of 7, there are 5 marbles left over. If he puts them in groups of 8, there are 2 marbles left over. How many marbles does he have?

groups of 7, with 5 marbles left over:

12, 19, 26, 33, 40, 47, 54, 61, ...

groups of 8, with 2 marbles left over:
10, 18, 26, 34, 42, 50, ...

What do you think?