<P> Sir Toby, Sir Andrew, and Maria plan revenge on Malvolio . They convince Malvolio that Olivia is secretly in love with him by planting a love letter, written by Maria in Olivia's handwriting . It asks Malvolio to wear yellow stockings cross-gartered, to be rude to the rest of the servants, and to smile constantly in the presence of Olivia . Malvolio finds the letter and reacts in surprised delight . He starts acting out the contents of the letter to show Olivia his positive response . Olivia is shocked by the changes in Malvolio and agreeing that he seems mad, leaves him to be cared for by his tormentors . Pretending that Malvolio is insane, they lock him up in a dark chamber . Feste visits him to mock his insanity, both disguised as a priest and as himself . </P> <P> Meanwhile, Viola's twin, Sebastian, has been rescued by Antonio, a sea captain who previously fought against Orsino, yet who accompanies Sebastian to Illyria, despite the danger, because of his affection for Sebastian . Sebastian's appearance adds the confusion of mistaken identities to the comedy . Taking Sebastian for' Cesario', Olivia asks him to marry her, and they are secretly married in a church . Finally, when' Cesario' and Sebastian appear in the presence of both Olivia and Orsino, there is more wonder and confusion at their physical similarity . At this point, Viola reveals her identity and is reunited with her twin brother . </P> <P> The play ends in a declaration of marriage between Duke Orsino and Viola, and it is learned that Sir Toby has married Maria . Malvolio swears revenge on his tormentors and stalks off, but Orsino sends Fabian to placate him . </P> <P> Illyria, the exotic setting of Twelfth Night, is important to the play's romantic atmosphere . </P>

Who ends up with who in twelfth night
find me the text answering this question