Which fits better in these sentences and why?

Who/Whom painted that big mural in the post office.

Do you know who/whom the secretary of state is?

2 answers

Use "who" when the pronoun is the subject. Use "whom" when it is any type of object.
I'm not sue but I would put who because it's a simpler word