How does core sampling work?

Can you answer this question?