The Men Who x The Men Whom

I already know that "Who" is a subject pronoun and "Whom" an object pronoun, but there's a specific sentence which is getting me "confused" about it.

Which one of these sentences is written in the right, or at least the more acceptable, manner:

"The men who were designated to build the whole hotel." or
"The men whom were designated to build the whole hotel"?

If you could also explain me why, I'd appreciate.

Thank you in advance :)
MENSAGEM PATROCINADA Aprenda dicas sobre os tempos verbais em inglês! Baixe agora o seu Guia Grátis de Tempos Verbais em Inglês. Ele contém um ótimo resumo para revisar todos os conceitos.

Clique aqui e saiba como baixar!
Avatar do usuário Ricardo F. Bernardi 8850 16 163
Good morning, Nickolas

Both sentences are correct.
"Whom" is more formal than "who".

You should read:
https://www.englishexperts.com.br/forum/who-x-whom-qual-a-diferenca-t3161.html

Enjoy your studies!

REFERENCE:
(1) Pearson Education. Longman Dictionary. 2004.