Complex sentence: The book ends with Sophie choosing to sit with Robin in the cafeteria instead of her friends, knowing that revealing her secret relationship to her friends and classmates would be okay.
Split into simpler sentences: The book ends with Sophie choosing to sit with Robin in the cafeteria instead of her friends. Knowing that relieving her secret relationship to her friends and classmates, would be okay.