What was the purpose of the Apollo space missions?

to collect rock samples from Mars

to land on Saturn

to collect rock samples from the moon

to land on Jupiter