Whom is an object, who is a subject. An object usually follows prepositions like “to”, so it’s good instinct to use whomever here, but in this case the object is the entire clause “whoever invented …”, so the whoever is the subject of the verb invented.
Whoever*
Whom is an object, who is a subject. An object usually follows prepositions like “to”, so it’s good instinct to use whomever here, but in this case the object is the entire clause “whoever invented …”, so the whoever is the subject of the verb invented.
seriously though whom the fuck cares