Before the Maze, Y/N and A5 have met it began when she became his nurse. Her brother Thomas is with W.C.K.D at this time and is friends with all of the subjects. Remember the memories Y/N kept getting in and outside the Maze well this is where all of those memories are played out. Beware you might be surprised if you haven't read the other books.
More details