What does Hamlet discover about Rosencrantz and Guildenstern's true intentions in Denmark?

a) They are secretly working for Laertes.
b) They are planning to betray King Claudius.
c) They are spying on Queen Gertrude.
d) They were sent by King Claudius to spy on him.