well, the first problem I think, it is correct, and I have no I idea how to explain it to you.
But the second one, Knowing who/whom to trust, both are correct. we use "who" only for conversation ( we could say, that is informal) but we use "whom" on Essay (formal word)
bassically, the correct usage on that sentence is using "whom"