Please help me with this
NO LINKS or i will report

Answer:
Independent clause : "because they were going spelunking." and "when they entered the cave." Dependent clause: "they used flashlights." and " the students were excited.