originally:
whom was the form of who that you would use if who was the object in a sentence - the direct object or the indirect object
whom did you hit?
of whom did you think?
But for about a hundred years that form has been dying. So now we really say:
who did you hit?
who did you think of?
So, unless you want to get crafty with your English, you can forget "whom"
Whose however still does exist. It stands for "of whom" but only when the "who" owns something.
So.... Whose book is this? (Of whom is this book - but note NO ONE says "Of whom is this book", but that is what it stands for.
So it's that easy:
FORGET "WHOM"
"WHOSE" means ---- well it is better to think of that one example
"Whose book is this?" which means "Who owns this book?"
Does that make sense?