Forty students from five grades brought 50 candies for the “Trick or Treat” game in a Halloween party. It is known that students from the same grade brought an equal number of candies, while students from different grades brought different numbers of candies. How many students brought exactly one candy?
help me
please