How does chalcopyrite form?

Can you answer this question?