Complex sentence: Carnelle is surprised when Mac Sam appears next, and explains that in her absence she was by the railroad tracks thinking about her life.
Split into simpler sentences: Carnelle is surprised when Mac Sam appears. Carnelle explains she was by the railroad tracks thinking about her life.