Whomever is an object pronoun that is used if the pronoun is the subject of the verb. We use it like her/him/them/ whom, but whoever is a subject pronoun that's used as I/he/ she/ they/ who. We use it if it is the object of the verb.
for examples:
The medal should be given to whomever win the competition
Whoever gets the full mark will win a prize..