Using who/whom whoever/whomever

At red lights, my friend tries to race
whoever pulls up beside him.

Susan, who was in an ugly mood, pushed past a Girl Scout trying to sell cookies.

Noel, whom I've known since middle school, has decided to trade in his ancient Honda.

You should try to impress whoever has a fat wallet.

The Johnsons, who everyone in the neighborhood hates, let their noisy dogs bark all night.

All are correct.

my friend tries to race whom?

Bad Susan, very bad Susan. Be nice to Girl Scouts, they are trying to make the world a better place. I don't see a question here..

Noel, you are the subject of the sentence, therefore, the nomatative phrase following is a modifier of the subject, so it is in the subject category, who I have a known, is correct here.

you should try to impress whom..?
whom/whoever has a fat wallet is the object of impress... IMPRESS whom?

the phrase is same category as as Noel's phrase.

Ms Sue is right. Your answers are correct.

The Johnsons, who everyone in the neighborhood hates, let their noisy dogs bark all night.

this is not correct!
Everyone hates them.

Them = him = Whom

Instead, it should be:

The Johnsons, whom everyone in the neighborhood hates, let their noisy dogs bark all night.

To determine whether to use "who" or "whom," ask yourself whether the word is functioning as a subject or an object in the sentence.

In the sentence "My friend tries to race whoever pulls up beside him," we need to consider the role of "whoever." We can rephrase the sentence as a question: "Who pulls up beside him?" In this case, "whoever" is the subject of the dependent clause, and therefore we use "whoever" instead of "whomever."

In the sentence "Susan, who was in an ugly mood, pushed past a Girl Scout trying to sell cookies," the pronoun "who" is the subject of the clause "who was in an ugly mood." Since "who" is the subject, it is appropriate to use "who" in this case.

In the sentence "Noel, whom I've known since middle school, has decided to trade in his ancient Honda," the pronoun "whom" is the object of the verb "known." We can rephrase it as a statement: "I've known him since middle school." In this case, "whom" is the correct pronoun to use.

In the sentence "You should try to impress whoever has a fat wallet," we need to determine whether "whoever" is functioning as the subject or object of the clause "whoever has a fat wallet." We can rephrase it as a question: "Who has a fat wallet?" Since "whoever" is the subject of the clause, we use "whoever" instead of "whomever."

In the sentence "The Johnsons, who everyone in the neighborhood hates, let their noisy dogs bark all night," the pronoun "who" is the subject of the clause "who everyone in the neighborhood hates." Therefore, "who" is the correct pronoun to use.

Remember that using "who" or "whom" correctly can sometimes be complex. A general rule of thumb is to use "who" when referring to the subject, and "whom" when referring to the object. However, using "who" as the default choice for all cases is becoming more common in informal contexts.