You have given us no information whatsoever concerning the distribution of M&Ms in Matthew's pencil box, so it's quite impossible to formulate any sort of answer to the question.
If John has $0.75 and he needs $2.50, then you will subtract $0.75 from $2.50 to find out how much he needs which is $1.75. Hope I helped! Don't forget to help me with the Brainliest Answer! :D