Complex sentence: Her first appearance was in McKay and Mrs. Miller where she was playing with her daughter and when watching a toy train cross a bridge, inspired her to write a formula on how to create a bridge between universes.
Split into simpler sentences: Her first appearance was in McKay and Mrs. Miller where she was playing with her daughter. Watching a toy train cross a bridge inspired her to write a formula on how to create a bridge between universes.