Detailed Instructions: 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'.
Problem:Title: Pajamas on fire!. Sentence 1: They were both at the grill cooking their food. Sentence 2: Nat and James were barbecuing in their backyard. Sentence 3: They were both in their pajamas. Sentence 4: What they didn't know was that the material was flammable. Sentence 5: All of a sudden their pajamas caught on fire!
Solution:
23415