Definition: You are given a math word problem and you are supposed to only use subtraction on the numbers embedded in the text to answer the following question and then only report the final numerical answer.
Input: Context: Matthew had 31 crackers. He has 23 crackers left after he gave equal numbers of crackers to his 5 friends.

Question: How many crackers did Matthew give to his friends?
Output:
8