In this task, you're given the title of a story consisting of five sentences, numbered 1 through 5. Your job is to arrange the sentences in order to make a story that makes complete sense and is apt for the title. Indicate your answer using the number of the sentences in order, such as '34152'.
Example: Title: Marcus Buys Khakis. Sentence 1: All of his clothes were either too formal or too casual. Sentence 2: Marcus needed clothing for a business casual event. Sentence 3: The pair he bought fit him perfectly. Sentence 4: Marcus was happy to have the right clothes for the event. Sentence 5: He decided to buy a pair of khakis.
Example solution: 21534
Example explanation: Marcus's reasons for buying khakis is established, followed by his purchase of them and reaction.

Problem: Title: Couldn't pay attention. Sentence 1: Ted had no clue what to do. Sentence 2: He needed to study. Sentence 3: So he took some coffee and it helped. Sentence 4: But it was impossible for him to even pay attention! Sentence 5: Ted had a huge test the next day.

Solution: 54123