Clark wants to give baseball cards to each of his friends. If he gives 6 cards to each of his friends he will have five cards left if he gives eight cards to each of his friends he will need 7 more cards how many friends is he giving the cards to

You are looking for a number which when divided by 6 leaves a remainder of 5

and when divided by 8 leaves a remainder of 1, (he needs 7 more to divide evenly)

possibilities for 1st case: 11, 17, 23, 29, 35, 41, 47, 53, 59, 65, ...
possibilities for 1st case: 9, 17
ahh, 17 is in both.
So he has 17 cards.

Am I misreading the question?