Original: She returned in the following serial Logopolis, in which the Fourth Doctor regenerated, and remained as a  companion of the Fifth Doctor.
Simplified: She returned in the next serial Logopolis, in which the Fourth Doctor regenerated, and remained as a  companion of the Fifth Doctor.