How was Carlsbad Caverns formed?

Can you answer this question?