Decompose_Question = [
    'Four years ago, Kody was only half as old as Mohamed. If Mohamed is currently twice 30 years old, how old is Kody?',
    # 'If Pam is currently twice as young as Rena is, and in 10 years Rena will be 5 years older than her, how old is Pam now?',
    # 'As a freelancer, Baylor is paid for every finished work of a client he does on a freelance marketplace. Currently, he has $4000 on his dashboard from previous work done. He is currently working for three clients, with the first client paying him half the amount of money he currently has on his dashboard once the job is done. The second client will pay him 2/5 times more money than the first client once Baylor finishes his work. The third client will pay him twice the amount of money the first and second clients pay him together once he finishes the job. How much money will Baylor have in his dashboard after all the clients pay him for his work?',
    'Cappuccinos cost $2, iced teas cost $3, cafe lattes cost $1.5 and espressos cost $1 each. Sandy orders some drinks for herself and some friends. She orders three cappuccinos, two iced teas, two cafe lattes, and two espressos. How much change does she receive back for a twenty-dollar bill?',
    'Betty & Paige are raising money for their kids\' little league team by hosting a bake sale. Betty has baked 4 dozen chocolate chip cookies, 6 dozen oatmeal raisin cookies and 2 dozen regular brownies. Paige baked 6 dozen sugar cookies, 3 dozen blondies and 5 dozen cream cheese swirled brownies. If they sell the cookies for $1.00 apiece and the blondies/brownies at $2.00 apiece, how much money will they raise?',
    'On a moonless night, three fireflies danced in the evening breeze. They were joined by four less than a dozen more fireflies, before two of the fireflies flew away. How many fireflies remained?',
    'Sam, Sid, and Steve brought popsicle sticks for their group activity in their Art class. Sam has thrice as many as Sid, and Sid has twice as many as Steve. If Steve has 12 popsicle sticks, how many popsicle sticks can they use for their Art class activity?',
]

Decompose_Answer = [
    "Let's break down this problem:\n1. How old is Mohamed?\n2. How old was Mohamed four years ago?\n3. How old was Kody four years ago?\n4. How old is Kody?",
    # "Let's break down this problem:\n1. How much older is Rena than Pam currently?\n2. How old is Pam now?",
    # "Let's break down this problem:\n1. How much will Baylor\'s first client pay him for his work?\n2. How much more will Baylor\'s second client pay him for his work compared to the first client?\n3. How much will Baylor\'s second client pay him for his work?\n4. How much will the first and second clients pay him together once he finishes the job?\n5. How much will Baylor\'s third client pay him for his work?\n6. How much money will all the clients pay Baylor for his work?\n7. How much money will Baylor have in his dashboard after all the clients pay him for his work?",
    "Let's break down this problem:\n1. How much did the cappuccinos cost in total?\n2. How much did the iced teas cost in total?\n3. How much did the cafe lattes cost in total?\n4. How much did the espressos cost in total?\n5. How much did the drinks cost in total?\n6. How much change does she receive back for a twenty-dollar bill? ",
    "Let's break down this problem:\n1. How many dozen cookies did they bake (not including blondies/brownies)?\n2. How many cookies did they bake (not including blondies/brownies)?\n3. How many dozen blondies/brownies did they bake (not including cookies)?\n4. How many blondies/brownies did they bake (not including cookies)?\n5. How much money will they raise from the cookies (not including blondies/brownies)?\n6. How much money will they raise from the blondies/brownies (not including cookies)?\n7. How much money will they raise?",
    "Let's break down this problem:\n1. How many fireflies joined?\n2. How many fireflies remained?",
    "Let's break down this problem:\n1. How many popsicle sticks does Sid have?\n2. How many popsicle sticks does Sam have?\n3. How many popsicle sticks can they use for their Art class activity?",
]

Full_Decompose_Answer = [
    "Let's break down this problem:\n1. How old is Mohamed?\n2. How old was Mohamed four years ago?\n3. How old was Kody four years ago?\n4. How old is Kody?\nLet's think step by step:\n1. Mohamed is currently twice 30 years old, so he is 60 years old.\n2. Four years ago, Mohamed was 60 - 4 = 56 years old.\n3. Four years ago, Kody was half as old as Mohamed, so Kody was 56 ÷ 2 = 28 years old.\n4. Kody is currently 28 + 4 = 32 years old.\n\nSo the answer is 32.",
    # "Let's break down this problem:\n1. How much will Baylor\'s first client pay him for his work?\n2. How much more will Baylor\'s second client pay him for his work compared to the first client?\n3. How much will Baylor\'s second client pay him for his work?\n4. How much will the first and second clients pay him together once he finishes the job?\n5. How much will Baylor\'s third client pay him for his work?\n6. How much money will all the clients pay Baylor for his work?\n7. How much money will Baylor have in his dashboard after all the clients pay him for his work?\nLet's think step by step:\n1. Baylor’s first client will pay him half the amount he currently has, which is ",
    "Let's break down this problem:\n1. How much did the cappuccinos cost in total?\n2. How much did the iced teas cost in total?\n3. How much did the cafe lattes cost in total?\n4. How much did the espressos cost in total?\n5. How much did the drinks cost in total?\n6. How much change does she receive back for a twenty-dollar bill?\nLet's think step by step:\n1. The cost of three cappuccinos is 3 * $2 = $6.\n2. The cost of two iced teas is 2 * $3 = $6.\n3. The cost of two cafe lattes is 2 * $1.5 = $3.\n4. The cost of two espressos is 2 * $1 = $2.\n5. The total cost of the drinks is $6 + $6 + $3 + $2 = $17.\n6. The change received back from a twenty-dollar bill is $20 - $17 = $3.\n\nSo the answer is 3. ",
    "Let's break down this problem:\n1. How many dozen cookies did they bake (not including blondies/brownies)?\n2. How many cookies did they bake (not including blondies/brownies)?\n3. How many dozen blondies/brownies did they bake (not including cookies)?\n4. How many blondies/brownies did they bake (not including cookies)?\n5. How much money will they raise from the cookies (not including blondies/brownies)?\n6. How much money will they raise from the blondies/brownies (not including cookies)?\n7. How much money will they raise?\nLet's think step by step:\n1. Betty baked 4 + 6 = 10 dozen cookies. Paige baked 6 dozen cookies. So, they baked 10 + 6 = 16 dozen cookies.\n2. 16 dozen cookies is 16 * 12 = 192 cookies.\n3. Betty baked 2 dozen brownies. Paige baked 3 dozen blondies and 5 dozen brownies. So, they baked 2 + 3 + 5 = 10 dozen blondies/brownies.\n4. 10 dozen blondies/brownies is 10 * 12 = 120 blondies/brownies.\n5. They will raise 192 * $1.00 = $192 from the cookies.\n6. They will raise 120 * $2.00 = $240 from the blondies/brownies.\n7. The total amount of money they will raise is $192 + $240 = $432.\n\nSo the answer is 432.",
    "Let's break down this problem:\n1. How many fireflies joined?\n2. How many fireflies remained?\nLet's think step by step:\n1. Four less than a dozen fireflies joined, which means 12 - 4 = 8 fireflies joined.\n2. Initially, there were 3 fireflies. After 8 more joined, there were 3 + 8 = 11 fireflies. Then, 2 fireflies flew away, so 11 - 2 = 9 fireflies remained.\n\nSo the answer is 9.",
    "Let's break down this problem:\n1. How many popsicle sticks does Sid have?\n2. How many popsicle sticks does Sam have?\n3. How many popsicle sticks can they use for their Art class activity?\nLet's think step by step:\n1. Sid has twice as many popsicle sticks as Steve. Since Steve has 12 popsicle sticks, Sid has 2 * 12 = 24 popsicle sticks.\n2. Sam has thrice as many popsicle sticks as Sid. Since Sid has 24 popsicle sticks, Sam has 3 * 24 = 72 popsicle sticks.\n3. The total number of popsicle sticks they can use for their Art class activity is the sum of the popsicle sticks that Sam, Sid, and Steve have. So, 12 (Steve) + 24 (Sid) + 72 (Sam) = 108 popsicle sticks.\n\nSo the answer is 108.",
]

CoT_Question = [
    'Four years ago, Kody was only half as old as Mohamed. If Mohamed is currently twice 30 years old, how old is Kody?',
    'Carla bought 2 bags of mini peanut butter cups on clearance. Each bag was $6.00 but was 75% off. How much did she spend on 2 bags of candy?',
    'If Pam is currently twice as young as Rena is, and in 10 years Rena will be 5 years older than her, how old is Pam now?',
    'Cappuccinos cost $2, iced teas cost $3, cafe lattes cost $1.5 and espressos cost $1 each. Sandy orders some drinks for herself and some friends. She orders three cappuccinos, two iced teas, two cafe lattes, and two espressos. How much change does she receive back for a twenty-dollar bill?'
]

CoT_Answer = [
    'We were told that Mohamed is currently twice 30 years old, so he is currently 30 * 2 = 60 years old. That means that four years ago he must have been 60 - 4 = 56 years old. Four years ago, Kody was half as old as Mohamed, so Kody must have been 56 / 2 = 28 years old then. Since Kody was 28 years old four years ago, she must now be 28 + 4 = 32 years old. So the answer is 32.',
    'Each bag was $6.00 but was 75% off. So each bag cost $6.00 * (1 - 0.75) = $6.00 * 0.25 = $1.50. Carla bought 2 bags. So she spent $1.50 * 2 = $3.00. So the answer is 3.',
    'Since Rena will be 5 years older than Pam in 10 years, she must be 5 years older than Pam now as well. If Pam is currently twice as young as Rena, that means that Rena is currently twice as old as Pam is. So if P stands for Pam’s age now and R stands for Rena’s age now, then we know that R = 2 * P And since Rena is 5 years older than Pam now, we know that R = P + 5. By substitution, we have P + 5 = 2 * P, which means that P = 5. So the answer is 5.',
    'Sandy ordered three cappuccinos, which cost $2 each, so she spent $2 * 3 = $6 on cappuccinos. She ordered two iced teas, which cost $3 each, so she spent $3 * 2 = $6 dollars on ice teas. She ordered two cafe lattes, which cost $1.5 each, so she spent $1.5 * 2 = $3 on cafe lattes. She ordered two espressos, which cost $1 each, so she spent $1 * 2 = $2 on espressos. So altogether, Sandy spent $6 + $6 + $3 + $2 = $17 on drinks, which means that sandy will get $20 - $17 = $3 as change. So the answer is 3.'
]

DecomposePrompt_Question = [
    'Four years ago, Kody was only half as old as Mohamed. If Mohamed is currently twice 30 years old, how old is Kody?',
    'Carla bought 2 bags of mini peanut butter cups on clearance. Each bag was $6.00 but was 75% off. How much did she spend on 2 bags of candy?',
    'If Pam is currently twice as young as Rena is, and in 10 years Rena will be 5 years older than her, how old is Pam now?',
]

DecomposePrompt_Answer = [
    "Let's break down this problem: 1. How old was Mohamed four years ago? 2. How old is Kody? 1. We were told that Mohamed is currently twice 30 years old, so he is currently 30 * 2 = 60 years old. That means that four years ago he must have been 60 - 4 = 56 years old. The answer is 56. 2. Four years ago, Kody was half as old as Mohamed, so Kody must have been 56 / 2 = 28 years old then. Since Kody was 28 years old four years ago, she must now be 28 + 4 = 32 years old. The answer is 32. So the answer is 32.",
    "Let's break down this problem: 1. How much did she spend on 2 bags of candy? 1. Each bag was $6.00 but was 75% off. So each bag cost $6.00 * (1 - 0.75) = $6.00 * 0.25 = $1.50. Carla bought 2 bags. So she spent $1.50 * 2 = $3.00. The answer is 3. So the answer is 3.",
    "Let's break down this problem: 1. How much older is Rena than Pam currently? 2. How old is Pam now? 1. Since Rena will be 5 years older than Pam in 10 years, she must be 5 years older than Pam now as well. The answer is 5. 2. If Pam is currently twice as young as Rena, that means that Rena is currently twice as old as Pam is. So if P stands for Pam’s age now and R stands for Rena’s age now, then we know that R = 2 * P And since Rena is 5 years older than Pam now, we know that R = P + 5. By substitution, we have P + 5 = 2 * P, which means that P = 5. The answer is 5. So the answer is 5.",
]

System_Prompt = [
    # Format: 1. '[Subquestion 1]' 2. '[Subquestion 2]', ... , N. '[Subquestion N]' N+1. '[Main question]'
    "Your task is to decompose only the last question in the input into a set of subquestions that outline the steps or information needed to arrive at the answer. You should not provide the direct answer to the question. Instead, focus on identifying the smaller pieces of information or steps required to solve the problem. Use the following format: Let's break down this problem: 1. '[Subquestion 1]' 2. '[Subquestion 2]', ... , N. '[Subquestion N]' N+1. '[Main question]'. Focus only on the last question provided in the prompt.",
    # Format: 1. '[Subquestion 1]' ** '[Answer to Subquestion1]' 2. '[Subquestion 2]' ** '[Answer to Subquestion2]', ... , N. '[Subquestion N]' ** '[Answer to SubquestionN]' N+1. '[Main question]'
    "Your task is to decompose only the last question in the input into a set of subquestions that outline the steps or information needed to arrive at the answer. For each subquestion, provide a chain of thought explaining the reasoning process that leads to the answer. After explaining the reasoning for each subquestion, provide the corresponding answer. Use the following format: Let's break down this problem: 1. '[Subquestion 1]' ** '[Chain of thought and Answer to Subquestion 1]' 2. '[Subquestion 2]' ** '[Chain of thought and Answer to Subquestion 2]', ... , N-1. '[Subquestion N-1]' ** '[Chain of thought and Answer to Subquestion N-1]' N. '[Subquestion N]' ** '[Chain of thought and Answer to Subquestion N]'"
    # "Your task is to decompose the last question in the input into a set of subquestions that outline the steps or information needed to arrive at the answer. For each subquestion, including the main question, provide a chain of thought explaining the reasoning process that leads to the answer. After explaining the reasoning for each subquestion, provide the corresponding answer. Treat the main question as the final subquestion.  Use the following format: Let's break down this problem: 1. '[Subquestion 1]' ** '[Chain of thought and Answer to Subquestion 1]' 2. '[Subquestion 2]' ** '[Chain of thought and Answer to Subquestion 2]', ... , N. '[Subquestion N]' ** '[Chain of thought and Answer to Subquestion N]' N+1. '[Main question]'"
]