Dataset Viewer
Auto-converted to Parquet Duplicate
user
stringlengths
11
996
assistant
stringlengths
113
41.8k
A truck driver travelled 234 miles for 6 hours, but had to take a 1-hour lunch break. What was his average speed for the entire journey in mph?
```python def simple_math_problem() -> float: """ A truck driver travelled 234 miles for 6 hours, but had to take a 1-hour lunch break. What was his average speed for the entire journey in mph? """ total_distance_travelled = 234 # miles total_time_taken = 6 + 1 # hours, including lunch break total_time_taken_with_lun...
The concert venue typically sells 6,500 tickets for each show. For the most recent concert, 874 more tickets were sold than usual. If the concert venue sold the usual amount of tickets for the next show, how many tickets did the concert venue sell for the past two shows combined?
```python def simple_math_problem() -> float: """ The concert venue typically sells 6,500 tickets for each show. For the most recent concert, 874 more tickets were sold than usual. If the concert venue sold the usual amount of tickets for the next show, how many tickets did the concert venue sell for the past t...
A class has 30 students. On Monday, 5 students were absent. On Tuesday, 3 more students came than on Monday. On Wednesday, 4 more students came than on Tuesday, and 1 absent student from Monday came. What is the total attendance rate for the three days?
```python def simple_math_problem() -> float: """ A class has 30 students. On Monday, 5 students were absent. On Tuesday, 3 more students came than on Monday. On Wednesday, 4 more students came than on Tuesday, and 1 absent student from Monday came. What is the total attendance rate for the three days? """ ...
Student: Zoe bought 16 packs of candy, each contain 12 identical pieces of candy. How many individual candy pieces did Zoe buy?
```python def simple_math_problem() -> int: """ Student: Zoe bought 16 packs of candy, each contain 12 identical pieces of candy. How many individual candy pieces did Zoe buy? """ number_of_packs = 16 # Number of packs of candy Zoe bought pieces_per_pack = 12 # Number of pieces of candy per pack ...
A car travels 495km in 7 hours, what is its average speed in km/h?
```python def simple_math_problem() -> float: """ A car travels 495km in 7 hours, what is its average speed in km/h? """ total_distance_traveled = 495 # in kilometers total_time_taken = 7 # in hours average_speed = total_distance_traveled / total_time_taken result = average_speed ret...
Elina has 45 jelly beans in a jar. She splits the jelly beans evenly between 3 of her friends. How many jelly beans does each of her friends get?
```python def simple_math_problem() -> float: """ Elina has 45 jelly beans in a jar. She splits the jelly beans evenly between 3 of her friends. How many jelly beans does each of her friends get? """ total_jelly_beans = 45 # Total number of jelly beans Elina has number_of_friends = 3 # Number of friends Elina is spli...
Karen needs to buy 8 rolls of wallpaper but she only has $54. If each roll of wallpaper costs $7, does she have enough money to buy all 8 rolls of wallpaper?
```python def simple_math_problem() -> float: """ Karen needs to buy 8 rolls of wallpaper but she only has $54. If each roll of wallpaper costs $7, does she have enough money to buy all 8 rolls of wallpaper? """ total_rolls_needed = 8 # Total number of rolls Karen needs to buy total_money_available...
Rachel, Monica, and Phoebe collect mugs. Rachel has three times as many mugs as Monica, but Monica has five times as many mugs as Phoebe. If Phoebe currently has 25 mugs in her collection, how many mugs does Rachel need to give to Monica to have the same number of mugs as her?
```python def simple_math_problem() -> float: """ Rachel, Monica, and Phoebe collect mugs. Rachel has three times as many mugs as Monica, but Monica has five times as many mugs as Phoebe. If Phoebe currently has 25 mugs in her collection, how many mugs does Rachel need to give to Monica to have the same number ...
Amy is planning a trip to the zoo with her friends. The zoo charges $12 for each adult and $8 for each child. Amy is 12 years old and her friends are 11, 13, and 14 years old. They also need to pay $10 for parking and $5 for each meal. How much money do they need to pay in total?
```python def simple_math_problem() -> float: """ Amy is planning a trip to the zoo with her friends. The zoo charges $12 for each adult and $8 for each child. Amy is 12 years old and her friends are 11, 13, and 14 years old. They also need to pay $10 for parking and $5 for each meal. How much money do they nee...
Tom can buy a new bike for $400 and have it last 6 years, or buy a used bike for $150 that lasts 2 years and a new bike for $250 that lasts 4 years. How much money will he save by picking the cheaper option?
```python def simple_math_problem() -> float: """ Tom can buy a new bike for $400 and have it last 6 years, or buy a used bike for $150 that lasts 2 years and a new bike for $250 that lasts 4 years. How much money will he save by picking the cheaper option? """ cost_of_new_bike = 400 # Cost of buying a...
A recipe calls for 3/4 cup of vegetable oil to make 12 muffins. If you want to make 24 muffins, how much oil do you need?
```python def simple_math_problem() -> float: """ A recipe calls for 3/4 cup of vegetable oil to make 12 muffins. If you want to make 24 muffins, how much oil do you need? """ original_muffin_count = 12 target_muffin_count = 24 original_oil_amount = 3/4 # Calculate the scaling factor for the recipe scaling_factor = ta...
A train travels 80 miles in 2 hours. If the train increases its speed by 25%, how long will it take to travel 100 miles at the faster speed?
```python def simple_math_problem() -> float: """ A train travels 80 miles in 2 hours. If the train increases its speed by 25%, how long will it take to travel 100 miles at the faster speed? """ original_distance = 80 # miles original_time = 2 # hours original_speed = original_distance / origi...
At the dance class, there were four times as many girls as there were boys. If there were 80 kids in the class, and 60% of them were girls, how many boys were in the class?
```python def simple_math_problem() -> float: """ At the dance class, there were four times as many girls as there were boys. If there were 80 kids in the class, and 60% of them were girls, how many boys were in the class? """ total_kids = 80 # Total number of kids in the class percentage_of_girls ...
If Amanda spent $1000 on 50 shirts, and Rachel bought 40 shirts for twice the price per shirt that Amanda spent, how much did Rachel spend per shirt?
```python def simple_math_problem() -> float: """ If Amanda spent $1000 on 50 shirts, and Rachel bought 40 shirts for twice the price per shirt that Amanda spent, how much did Rachel spend per shirt? """ amanda_total_spent = 1000 # Total amount Amanda spent amanda_number_of_shirts = 50 # Number of shirts Amanda bough...
Student: A theme park charges $50 for admission and $10 for parking. If a family of 4 drives one car to the park, how much will they pay in total?
```python def simple_math_problem() -> float: """ A theme park charges $50 for admission and $10 for parking. If a family of 4 drives one car to the park, how much will they pay in total? """ admission_cost_per_person = 50.0 # Cost of admission per person number_of_family_members = 4 # Number ...
Tom has $2000. He wants to buy a new phone that costs $1000. After buying the phone, he spends 20% of his remaining money on food. How much money does Tom have left?
```python def simple_math_problem() -> float: """ Tom has $2000. He wants to buy a new phone that costs $1000. After buying the phone, he spends 20% of his remaining money on food. How much money does Tom have left? """ initial_money = 2000 # Tom's initial money phone_cost = 1000 # Cost of the new phone money_after_p...
Marcus wants to buy the latest 4K TV. He works an after school job for 25 hours a week and gets paid $12.50 per hour. He also mows 4 neighbors’ lawn for $7 per lawn. If the TV he wants to buy costs $500 and he just has enough money to cover the cost, how much does he have left after he pays for the TV?
```python def simple_math_problem() -> float: """ Marcus wants to buy the latest 4K TV. He works an after school job for 25 hours a week and gets paid $12.50 per hour. He also mows 4 neighbors’ lawn for $7 per lawn. If the TV he wants to buy costs $500 and he just has enough money to cover the cost, how much do...
Student: Brian wants to buy pizza for his football team. He saw 5 packs with 8 pizzas each and 2 additional packs with 10 pizzas each. How many pizzas did Brian see in total?
```python def simple_math_problem() -> int: """ Student: Brian wants to buy pizza for his football team. He saw 5 packs with 8 pizzas each and 2 additional packs with 10 pizzas each. How many pizzas did Brian see in total? """ # Number of packs with 8 pizzas each packs_with_8_pizzas = 5 # Number of pizzas in each of th...
Student: Julia has three buckets of different colors of paint. The first bucket has 10 liters of red paint, the second bucket has 8 liters of blue paint, and the third bucket has 12 liters of yellow paint. She mixes all the paint together and then fills 16 cans of 1.5 liters each with the mixed paint. How much paint is...
```python def simple_math_problem() -> float: """ Student: Julia has three buckets of different colors of paint. The first bucket has 10 liters of red paint, the second bucket has 8 liters of blue paint, and the third bucket has 12 liters of yellow paint. She mixes all the paint together and then fills 16 cans ...
arah wants to buy a dress that costs $80, but she only has $55. How much more money does she need to buy the dress?
```python def simple_math_problem() -> float: """ Sarah wants to buy a dress that costs $80, but she only has $55. How much more money does she need to buy the dress? """ dress_cost = 80.0 # Cost of the dress in dollars sarahs_money = 55.0 # Amount of money Sarah currently has in dollars addit...
Bria owes $1500 to Cora, which is three times what Dara owes Cora. Bria pays off 40% of her debt to Cora, and Dara pays off 90% of her debt to Cora. If Cora had $500 in her savings account and adds the money she's been paid by her debtors to the savings account, calculate the total amount of money in her savings accoun...
```python def simple_math_problem() -> float: """ Bria owes $1500 to Cora, which is three times what Dara owes Cora. Bria pays off 40% of her debt to Cora, and Dara pays off 90% of her debt to Cora. If Cora had $500 in her savings account and adds the money she's been paid by her debtors to the savings account,...
arah has 4 shirts with stripes and three times as many shirts with polka dots. She gives away 2 striped shirts and 4 polka dot shirts, then buys 5 striped shirts. How many total shirts does she have now?
```python def simple_math_problem() -> int: """ Sarah has 4 shirts with stripes and three times as many shirts with polka dots. She gives away 2 striped shirts and 4 polka dot shirts, then buys 5 striped shirts. How many total shirts does she have now? """ initial_striped_shirts = 4 initial_polka_do...
A school has 20 fewer students each year. If it has 300 students in 2019, how many students did it have in 2012?
```python def simple_math_problem() -> float: """ A school has 20 fewer students each year. If it has 300 students in 2019, how many students did it have in 2012? """ students_in_2019 = 300 years_difference = 2019 - 2012 decrease_per_year = 20 total_decrease = years_difference * decrease_per...
There are 8 children and their parents in a family. The parents are buying each child 10 candies. How many candies did the parents buy in total?
```python def simple_math_problem() -> int: """ There are 8 children and their parents in a family. The parents are buying each child 10 candies. How many candies did the parents buy in total? """ number_of_children = 8 candies_per_child = 10 total_candies = number_of_children * candies_per_child return total_candies ...
Amy has 15 stickers. She traded 2 stickers with Lisa, and got 3 stickers from Lisa. Then she traded 4 stickers with Bob, and got 5 stickers from Bob. How many stickers, in number, does Amy have now?
```python def simple_math_problem() -> int: """ Amy has 15 stickers. She traded 2 stickers with Lisa, and got 3 stickers from Lisa. Then she traded 4 stickers with Bob, and got 5 stickers from Bob. How many stickers, in number, does Amy have now? """ initial_stickers = 15 # Amy's initial number of stickers stickers_tr...
A farmer is selling apples at a market. She has sold 185 apples at $2.50 each. How much money has the farmer made?
```python def simple_math_problem() -> float: """ A farmer is selling apples at a market. She has sold 185 apples at $2.50 each. How much money has the farmer made? """ number_of_apples_sold = 185 price_per_apple = 2.50 total_money_made = number_of_apples_sold * price_per_apple result = total_money_made return result...
Maria wants to make a pasta dish for dinner. She needs to buy 2 packages of spaghetti for $1.50 each, a jar of tomato sauce for $2.00, and a pound of ground turkey for $3.50. She also needs a carton of chicken broth that costs $2.00 and a container of grated Parmesan cheese for $3.50. If she pays with a $20 bill, how m...
```python def simple_math_problem() -> float: """ Maria wants to make a pasta dish for dinner. She needs to buy 2 packages of spaghetti for $1.50 each, a jar of tomato sauce for $2.00, and a pound of ground turkey for $3.50. She also needs a carton of chicken broth that costs $2.00 and a container of grated Par...
Bill's friend has gifted him 2 patches of popcorn. One has 21 popcorn and one has 15 popcorn. Bill wants to divide the popcorn among his 4 friends equally. How many popcorn should each one of his friends get?
```python def simple_math_problem() -> float: """ Bill's friend has gifted him 2 patches of popcorn. One has 21 popcorn and one has 15 popcorn. Bill wants to divide the popcorn among his 4 friends equally. How many popcorn should each one of his friends get? """ # Assign the number of popcorn in each patch to descripti...
A recipe calls for 2 cups of sugar and makes 12 muffins. If Karen wants to make 24 muffins, how many cups of sugar does she need?
```python def simple_math_problem() -> float: """ A recipe calls for 2 cups of sugar and makes 12 muffins. If Karen wants to make 24 muffins, how many cups of sugar does she need? """ original_muffins = 12 original_sugar = 2 desired_muffins = 24 # Calculate the ratio of desired muffins to original muffins muffin_ratio...
Student: A recipe calls for 6 teaspoons of sugar to make 12 cookies. If you want to make 48 cookies, how many teaspoons of sugar do you need?
```python def simple_math_problem() -> float: """ A recipe calls for 6 teaspoons of sugar to make 12 cookies. If you want to make 48 cookies, how many teaspoons of sugar do you need? """ # Define variables teaspoons_of_sugar_per_batch = 6 cookies_per_batch = 12 total_cookies_wanted = 48 # Calculate the number of batch...
A company had $10,000 in revenue last month. If the company spent $3,000 on rent and $2,000 on salaries, how much profit did the company make?
```python def simple_math_problem() -> float: """ A company had $10,000 in revenue last month. If the company spent $3,000 on rent and $2,000 on salaries, how much profit did the company make? """ total_revenue = 10000 # Total revenue of the company rent_expenses = 3000 # Rent expenses of the com...
A company has 300 employees. If 60% of the employees are women, how many men are there in the company?
```python def simple_math_problem() -> float: """ A company has 300 employees. If 60% of the employees are women, how many men are there in the company? """ total_employees = 300 # Total number of employees in the company percentage_of_women = 0.6 # Percentage of women employees number_of_women = total_employees * pe...
A car can drive 25 miles on 1 gallon of gas. If Jane drives 200 miles and the gas tank can hold 12 gallons, how many gallons of gas will she need to fill up before driving?
```python def simple_math_problem() -> float: """ A car can drive 25 miles on 1 gallon of gas. If Jane drives 200 miles and the gas tank can hold 12 gallons, how many gallons of gas will she need to fill up before driving? """ miles_per_gallon = 25 # miles that can be driven per gallon of gas total_miles_to_drive = 20...
The sum of two numbers is 25. The difference of the same two numbers is 9. What are the two numbers?
```python def simple_math_problem() -> tuple: """ The sum of two numbers is 25. The difference of the same two numbers is 9. What are the two numbers? """ # Let's denote the two numbers as x and y # We have the following equations: # x + y = 25 # x - y = 9 # We can solve these equations using basic algebra # First, le...
A dress is on sale for $40 and has an original price of $80. If the sale is for 20% off the original price, what is the discount in dollars?
```python def simple_math_problem() -> float: """ A dress is on sale for $40 and has an original price of $80. If the sale is for 20% off the original price, what is the discount in dollars? """ original_price = 80 # Original price of the dress in dollars discount_percentage = 0.20 # Discount percentage as a decimal ...
Ann practices guitar every day. On the first day, she practices for 30 minutes. Every subsequent day, she doubles the time she practiced the previous day. On what day will she practice for more than 10 times longer than she did on the first day?
```python def simple_math_problem() -> float: """ Ann practices guitar every day. On the first day, she practices for 30 minutes. Every subsequent day, she doubles the time she practiced the previous day. On what day will she practice for more than 10 times longer than she did on the first day? """ firs...
In the garden, Rachel picks flowers every hour. In the first hour, she picked 12 flowers. In the next two hours, she picked 26 flowers. In the fourth hour, she picked 45 flowers but gave 15 to her mom. How many flowers did Rachel have after the fourth hour?
```python def simple_math_problem() -> float: """ In the garden, Rachel picks flowers every hour. In the first hour, she picked 12 flowers. In the next two hours, she picked 26 flowers. In the fourth hour, she picked 45 flowers but gave 15 to her mom. How many flowers did Rachel have after the fourth hour? ...
Liam saves $10 per week for the first four months of the year, $15 per week for the next three months, and $25 per week for the last five months of the year. How much should he save in January so he will have a total savings of $1000 in the year?
```python def simple_math_problem() -> float: """ Liam saves $10 per week for the first four months of the year, $15 per week for the next three months, and $25 per week for the last five months of the year. How much should he save in January so he will have a total savings of $1000 in the year? """ wee...
--- Possible new questions and programs: Jacob wants to make some lemonade for his lemonade stand. He has 8 lemons and each lemon produces 1/4 cup of juice. He also has a bottle of lemon concentrate that has 2 cups of juice. He needs 1 cup of juice and 4 cups of water to make a gallon of lemonade. How many gallons of l...
```python def simple_math_problem() -> float: """ Jacob wants to make some lemonade for his lemonade stand. He has 8 lemons and each lemon produces 1/4 cup of juice. He also has a bottle of lemon concentrate that has 2 cups of juice. He needs 1 cup of juice and 4 cups of water to make a gallon of lemonade. How ...
Paige needs to get to the airport to catch a flight. A taxi is $14 more expensive than an Uber. An Uber costs $7 more than a shuttle bus ride. The taxi costs $56. If Paige takes the shuttle and spends an additional 10% of the cost on coffee, what is the total cost of the shuttle ride?
```python def simple_math_problem() -> float: """ Paige needs to get to the airport to catch a flight. A taxi is $14 more expensive than an Uber. An Uber costs $7 more than a shuttle bus ride. The taxi costs $56. If Paige takes the shuttle and spends an additional 10% of the cost on coffee, what is the total co...
Nora has 18 pencils to pack in boxes. She wants to put 6 pencils in each box. How many boxes does she need?
```python def simple_math_problem() -> float: """ Nora has 18 pencils to pack in boxes. She wants to put 6 pencils in each box. How many boxes does she need? """ total_pencils = 18 # Total number of pencils Nora has pencils_per_box = 6 # Number of pencils Nora wants to put in each box boxes_needed = total_pencils / p...
The pirate Blackbeard has a treasure of 500 doubloons, 120 pieces of eight, and 90 gold coins. If each piece of eight is worth 3 doubloons, and each gold coin is worth 2 pieces of eight, what is the total value of Blackbeard's treasure expressed as a number of doubloons?
```python def simple_math_problem() -> float: """ The pirate Blackbeard has a treasure of 500 doubloons, 120 pieces of eight, and 90 gold coins. If each piece of eight is worth 3 doubloons, and each gold coin is worth 2 pieces of eight, what is the total value of Blackbeard's treasure expressed as a number of d...
Ethan had 8 toy dinosaurs. He was given 5 more toy dinosaurs from his dad and 2 more from his grandparents. Ethan then gave away 3 toy dinosaurs to his friend and 1 toy dinosaur to his little brother. How many toy dinosaurs does Ethan have left?
```python def simple_math_problem() -> int: """ Ethan had 8 toy dinosaurs. He was given 5 more toy dinosaurs from his dad and 2 more from his grandparents. Ethan then gave away 3 toy dinosaurs to his friend and 1 toy dinosaur to his little brother. How many toy dinosaurs does Ethan have left? """ initial_dinosaurs = 8 ...
Student: If Sally has 30 computers in the first year, and in the following years she increases her computers by 25%. How many computers does Sally have in 5 years?
```python def simple_math_problem() -> float: """ Student: If Sally has 30 computers in the first year, and in the following years she increases her computers by 25%. How many computers does Sally have in 5 years? """ initial_computers = 30 # Initial number of computers Sally has annual_increase_rate = 0.25 # Annual ...
Jacob has a toy car collection. He bought 15 new toy cars to add to his collection. The next day, his younger sister broke a third of his cars. Jacob now has only 25 toy cars left. How many toy cars did Jacob have before his younger sister broke some of them?
```python def simple_math_problem() -> float: """ Jacob has a toy car collection. He bought 15 new toy cars to add to his collection. The next day, his younger sister broke a third of his cars. Jacob now has only 25 toy cars left. How many toy cars did Jacob have before his younger sister broke some of them? ...
David has $150. He spends $50 on a jacket. What percentage of his money did David spend on the jacket?
```python def simple_math_problem() -> float: """ David has $150. He spends $50 on a jacket. What percentage of his money did David spend on the jacket? """ initial_money = 150 # Initial amount of money David has money_spent_on_jacket = 50 # Amount of money David spent on the jacket percentage_spent = (money_spent_on...
4. Daisy bought 225 markers for her classroom, but then she found out that she had 290 markers already. How many markers did she have in total?
```python def simple_math_problem() -> int: """ 4. Daisy bought 225 markers for her classroom, but then she found out that she had 290 markers already. How many markers did she have in total? """ markers_bought = 225 # Number of markers Daisy bought markers_already_owned = 290 # Number of markers ...
Rachel bought a dozen of donuts for $8 and 2 quarts of ice cream for $6 each. How much did she spend in total?
```python def simple_math_problem() -> float: """ Rachel bought a dozen of donuts for $8 and 2 quarts of ice cream for $6 each. How much did she spend in total? """ cost_of_donuts = 8 # Cost of a dozen donuts in dollars cost_of_one_quart_ice_cream = 6 # Cost of one quart of ice cream in dollars number_of_quarts_ice_c...
Monkeys and gorillas have different numbers of arms. Monkeys have two arms and four legs, while gorillas have one more arm and twice as many legs. How many more arms will five monkeys have than five gorillas?
```python def simple_math_problem() -> float: """ Monkeys and gorillas have different numbers of arms. Monkeys have two arms and four legs, while gorillas have one more arm and twice as many legs. How many more arms will five monkeys have than five gorillas? """ # Define the number of arms and legs for monkeys and gori...
Eva has 48 stamps. She wants to divide them into equal albums each containing 6 stamps. How many albums does she need?
```python def simple_math_problem() -> float: """ Eva has 48 stamps. She wants to divide them into equal albums each containing 6 stamps. How many albums does she need? """ total_stamps = 48 # Total number of stamps Eva has stamps_per_album = 6 # Number of stamps each album can contain albums_needed = total_stamps / ...
A library has 1000 books. The librarian plans on selling books in sets. In each set, 10% of the remaining books will be sold. After four rounds, how many books will be left? Maddie drank 12.3 ounces of tea yesterday while Jared drank 10.6 ounces of lemonade. How many fluid ounces of liquid did the two of them consume y...
```python def simple_math_problem() -> float: """ A library has 1000 books. The librarian plans on selling books in sets. In each set, 10% of the remaining books will be sold. After four rounds, how many books will be left? Maddie drank 12.3 ounces of tea yesterday while Jared drank 10.6 ounces of lemonade. How...
Student: Max is a baker and he has to bake many cakes this weekend - he has 11 ingredients in total. Max needs 3 cups of flour for one cake, 1/4 cup of sugar for one cake and 1/2 cup of butter for one cake. How many total cups of butter does Max need to bake all his cakes this weekend?
```python def simple_math_problem() -> float: """ Student: Max is a baker and he has to bake many cakes this weekend - he has 11 ingredients in total. Max needs 3 cups of flour for one cake, 1/4 cup of sugar for one cake and 1/2 cup of butter for one cake. How many total cups of butter does Max need to bake all his cak...
The sum of three consecutive odd integers is 93. What are the three integers?
```python def simple_math_problem() -> list: """ The sum of three consecutive odd integers is 93. What are the three integers? """ # Let's denote the smallest odd integer as x x = 0 # Initialize variable # Since the integers are consecutive odd integers, we can express the next two integers as x + 2 and x + 4 # The s...
John bikes 20 kilometers to work every day. After work, he bikes to the gym and back home. If he bikes a total of 60 kilometers, how far away is the gym from his workplace?
```python def simple_math_problem() -> float: """ John bikes 20 kilometers to work every day. After work, he bikes to the gym and back home. If he bikes a total of 60 kilometers, how far away is the gym from his workplace? """ distance_to_work = 20 # kilometers total_distance_biked = 60 # kilomete...
The number of cats at Wildcats For Health is 6 times as many as the number of cats at Cat Foster Mission. If there are 120 cats at Wildcats For Health, calculate the total number of cats in the two organisations.
```python def simple_math_problem() -> float: """ The number of cats at Wildcats For Health is 6 times as many as the number of cats at Cat Foster Mission. If there are 120 cats at Wildcats For Health, calculate the total number of cats in the two organisations. """ # Number of cats at Wildcats For Health cats_at_wildc...
A restaurant offers a 15% discount on meals that cost over $20. If Peter's meal cost $27, how much is his discount?
```python def simple_math_problem() -> float: """ A restaurant offers a 15% discount on meals that cost over $20. If Peter's meal cost $27, how much is his discount? """ meal_cost = 27 # Cost of Peter's meal discount_percentage = 0.15 # Discount percentage as a decimal discount = meal_cost * discount_percentage # Ca...
The Smith triplets are 14 years old today. Three years ago, the sum of their ages equaled their grandfather's age. What is the age of their grandfather now?
```python def simple_math_problem() -> float: """ The Smith triplets are 14 years old today. Three years ago, the sum of their ages equaled their grandfather's age. What is the age of their grandfather now? """ # Define variables current_age_of_triplets = 14 # years number_of_triplets = 3 years_ago = 3 # Calculate th...
On Monday, Ryan had $307. He then spent 43 dollars on kungfu classes, 41 dollars on groceries, and 25 dollars on a new hat. How much money does he have remaining?
```python def simple_math_problem() -> float: """ On Monday, Ryan had $307. He then spent 43 dollars on kungfu classes, 41 dollars on groceries, and 25 dollars on a new hat. How much money does he have remaining? """ initial_money = 307 # Initial amount of money Ryan had kungfu_classes_cost = 43 # Cost of kungfu clas...
Student: Jake has some marbles in his jar. Kate has 7 fewer marbles than Jake. Luke has 5 more marbles than Kate. If Luke has 13 marbles, how many marbles does Jake have?
```python def simple_math_problem() -> int: """ Student: Jake has some marbles in his jar. Kate has 7 fewer marbles than Jake. Luke has 5 more marbles than Kate. If Luke has 13 marbles, how many marbles does Jake have? """ # Number of marbles Luke has marbles_luke_has = 13 # Number of marbl...
Lucas wants to sell his guitar. He sold it for 80% of its original value and then was able to buy a new one for $1000 at 75% of its value. How much money did he spend?
```python def simple_math_problem() -> float: """ Lucas wants to sell his guitar. He sold it for 80% of its original value and then was able to buy a new one for $1000 at 75% of its value. How much money did he spend? """ original_value_of_new_guitar = 1000 / 0.75 # calculate the original value of the ...
Jack and Jill walk up a hill that is 500 meters tall, but Jack takes 3 times as long as Jill. How many meters will Jack have walked in 8 minutes?
```python def simple_math_problem() -> float: """ Jack and Jill walk up a hill that is 500 meters tall, but Jack takes 3 times as long as Jill. How many meters will Jack have walked in 8 minutes? """ # Let's assume Jill walks at a constant speed jill_time_to_climb_hill = 1 # in hours, assuming she takes 1 hour to clim...
Emily is counting pencils in a classroom. She knows that of the pencils that she sees, 20% will be red and 80% will be another color. On day one she counts 30 pencils. On day 2 she counts three times as many. How many red pencils did she count over those two days?
```python def simple_math_problem() -> float: """ Emily is counting pencils in a classroom. She knows that of the pencils that she sees, 20% will be red and 80% will be another color. On day one she counts 30 pencils. On day 2 she counts three times as many. How many red pencils did she count over those two days? """ #...
Jessica and Kevin are making muffins for their class. They have a recipe that makes 12 muffins with 2 cups of flour, 1 cup of milk, and 4 eggs. They want to make 36 muffins for their class, but they only have 5 cups of flour, 3 cups of milk, and 12 eggs. What is the maximum number of muffins they can make with their in...
```python def simple_math_problem() -> float: """ Jessica and Kevin are making muffins for their class. They have a recipe that makes 12 muffins with 2 cups of flour, 1 cup of milk, and 4 eggs. They want to make 36 muffins for their class, but they only have 5 cups of flour, 3 cups of milk, and 12 eggs. What is the max...
Lisa is 12 years old. Her twin sisters are 3 years younger and their mother is 4 times their sisters' age. How old was their mother when Lisa was born?
```python def simple_math_problem() -> float: """ Lisa is 12 years old. Her twin sisters are 3 years younger and their mother is 4 times their sisters' age. How old was their mother when Lisa was born? """ lisa_age = 12 # Lisa's current age sisters_age = lisa_age - 3 # Sisters' current age mother_age = 4 * sisters_ag...
A farmer picked 510 apples. He sold 1/3 of them at a market and gave another 1/6 to his neighbor. How many apples did he have left?
```python def simple_math_problem() -> float: """ A farmer picked 510 apples. He sold 1/3 of them at a market and gave another 1/6 to his neighbor. How many apples did he have left? """ total_apples_picked = 510 apples_sold_at_market = total_apples_picked * (1/3) apples_given_to_neighbor = total...
A pizza restaurant offers a 30cm pizza for $10 and a 40cm pizza for $15. If 3 friends share a pizza, how much does each friend have to pay for a 30cm pizza and for a 40cm pizza?
```python def simple_math_problem() -> dict: """ A pizza restaurant offers a 30cm pizza for $10 and a 40cm pizza for $15. If 3 friends share a pizza, how much does each friend have to pay for a 30cm pizza and for a 40cm pizza? """ price_30cm_pizza = 10 # Price of a 30cm pizza in dollars price_40cm_...
Student: Q2: John wants to give his friend some money as a gift. If the current exchange rate from USD to CAD is 1.3 and John wants to give a total of $400 CAD, how much USD must John give to his friend?
```python def simple_math_problem() -> float: """ John wants to give his friend some money as a gift. If the current exchange rate from USD to CAD is 1.3 and John wants to give a total of $400 CAD, how much USD must John give to his friend? """ desired_cad_amount = 400 # The amount in CAD that John wan...
Leah bought a new laptop that advertised an estimated battery life of 10 hours. The laptop has a battery capacity of 5000 mAh. She used the laptop without charging and was able to operate for 6 hours. What was the difference, in hours, between Leah's battery life and the advertised battery life?
```python def simple_math_problem() -> float: """ Leah bought a new laptop that advertised an estimated battery life of 10 hours. The laptop has a battery capacity of 5000 mAh. She used the laptop without charging and was able to operate for 6 hours. What was the difference, in hours, between Leah's battery lif...
Student: Tom charges $24 per hour of tutoring and $14 per 30 minutes of extra time. If Tom tutored for 1 hour and 50 minutes and charged $94, how much did he charge per 30 minutes of extra time?
```python def simple_math_problem() -> float: """ Student: Tom charges $24 per hour of tutoring and $14 per 30 minutes of extra time. If Tom tutored for 1 hour and 50 minutes and charged $94, how much did he charge per 30 minutes of extra time? """ hourly_rate = 24 # dollars per hour extra_time_rat...
ClothesCorp was found guilty of using child labor in its factories and is being fined 2.5% of its annual profits. Every day ClothesCorp earns $1,000,000 from clothing sales and $500,000 from accessory sales. Its yearly expenses are $15,000,000. How much is ClothesCorp's fine in dollars?
```python def simple_math_problem() -> float: """ ClothesCorp was found guilty of using child labor in its factories and is being fined 2.5% of its annual profits. Every day ClothesCorp earns $1,000,000 from clothing sales and $500,000 from accessory sales. Its yearly expenses are $15,000,000. How much is Cloth...
Student: A store sells 4 packs of gum for $2. If Sarah wants to buy 12 packs of gum, how much will she have to pay in total?
```python def simple_math_problem() -> float: """ A store sells 4 packs of gum for $2. If Sarah wants to buy 12 packs of gum, how much will she have to pay in total? """ packs_of_gum_per_unit = 4 total_packs_of_gum_wanted = 12 price_per_unit = 2 units_of_gum_needed = total_packs_of_gum_want...
A car is traveling at a speed of 65 miles per hour. How many miles will it travel in 4 hours?
```python def simple_math_problem() -> float: """ A car is traveling at a speed of 65 miles per hour. How many miles will it travel in 4 hours? """ speed_of_car = 65 # miles per hour time_traveled = 4 # hours distance_traveled = speed_of_car * time_traveled result = distance_traveled ...
A laptop costs $1999. A buyer wants to make a down payment of $250 and to pay for 18 months with a monthly interest rate of 4%. How much will be the monthly payment if the buyer wants to avoid interests?
```python def simple_math_problem() -> float: """ A laptop costs $1999. A buyer wants to make a down payment of $250 and to pay for 18 months with a monthly interest rate of 4%. How much will be the monthly payment if the buyer wants to avoid interests? """ laptop_cost = 1999 # Total cost of the laptop...
There are 9 more turtles than fish in a tank. There are 15 fish. How many pets are in the tank?
```python def simple_math_problem() -> float: """ There are 9 more turtles than fish in a tank. There are 15 fish. How many pets are in the tank? """ number_of_fish = 15 number_of_turtles = number_of_fish + 9 total_number_of_pets = number_of_fish + number_of_turtles result = total_number_of_pets return result # Exam...
Tina is planning to build a fountain in her garden. The fountain will be 15 feet wide, 20 feet long, and 1 foot tall. The material used for the fountain has a density of 180 pounds per cubic foot, and it costs $. 04 per pound. How much will it cost to build the fountain?
```python def simple_math_problem() -> float: """ Tina is planning to build a fountain in her garden. The fountain will be 15 feet wide, 20 feet long, and 1 foot tall. The material used for the fountain has a density of 180 pounds per cubic foot, and it costs $. 04 per pound. How much will it cost to build the ...
Question6: A trolley driver picked up 18 people on his 1st stop. On the next stop, 5 people got off and 3 times as many people from the 1st stop got on. How many people are currently on the trolley?
```python def simple_math_problem() -> float: """ A trolley driver picked up 18 people on his 1st stop. On the next stop, 5 people got off and 3 times as many people from the 1st stop got on. How many people are currently on the trolley? """ initial_passengers = 18 # people picked up on the 1st stop ...
A baker makes 48 muffins in a batch. He sells 18 muffins in the morning and 12 muffins in the afternoon. He gives 6 muffins to his family and keeps the rest for himself. How many muffins does he keep for himself?
```python def simple_math_problem() -> float: """ A baker makes 48 muffins in a batch. He sells 18 muffins in the morning and 12 muffins in the afternoon. He gives 6 muffins to his family and keeps the rest for himself. How many muffins does he keep for himself? """ total_muffins = 48 # Total muffins made in a batch m...
John has 5 apples and Jane has 8 more apples than John. They want to divide the apples equally. How many apples will each person have?
```python def simple_math_problem() -> float: """ John has 5 apples and Jane has 8 more apples than John. They want to divide the apples equally. How many apples will each person have? """ # Number of apples John has john_apples = 5 # Number of apples Jane has, 8 more than John jane_apples = john_apples + 8 # Total num...
Student: A bus drives at an average speed of 60 km/h for the first 5 hours, then increases its speed to 80 km/h for the next 3 hours. What is the average speed of the bus for the entire trip?
```python def simple_math_problem() -> float: """ A bus drives at an average speed of 60 km/h for the first 5 hours, then increases its speed to 80 km/h for the next 3 hours. What is the average speed of the bus for the entire trip? """ initial_speed = 60 # km/h initial_time = 5 # hours final_...
Alice is buying a home theater system. The TV costs $2500, the sound system costs $1200, and the Blu-ray player costs $300. She gets a 22% discount on everything. How much did she pay?
```python def simple_math_problem() -> float: """ Alice is buying a home theater system. The TV costs $2500, the sound system costs $1200, and the Blu-ray player costs $300. She gets a 22% discount on everything. How much did she pay? """ tv_cost = 2500 # Cost of the TV sound_system_cost = 1200 # Cost of the sound sy...
Ashley takes the train to work every day, 5 days a week. She needs to replace her train card every month. She gets a free month of train rides every year. If a monthly train card costs $150, how much does she pay a year?
```python def simple_math_problem() -> float: """ Ashley takes the train to work every day, 5 days a week. She needs to replace her train card every month. She gets a free month of train rides every year. If a monthly train card costs $150, how much does she pay a year? """ monthly_train_card_cost = 150...
A store has a sale of 15% off everything. If a shirt originally cost $20, what is the sale price?
```python def simple_math_problem() -> float: """ A store has a sale of 15% off everything. If a shirt originally cost $20, what is the sale price? """ original_price = 20 # Original price of the shirt discount_percentage = 0.15 # Discount percentage as a decimal discount_amount = original_price * discount_percentage...
Student: Lily has 40 pencils. She has three times as many pencils as Max. Max lost 1/4 of his pencils. How many pencils does Max have left?
```python def simple_math_problem() -> float: """ Student: Lily has 40 pencils. She has three times as many pencils as Max. Max lost 1/4 of his pencils. How many pencils does Max have left? """ # Number of pencils Lily has lily_pencils = 40 # Max has 1/3 of Lily's pencils max_pencils = ...
In a zoo, there are a total of 86 parrots. However, 9 fewer parrots are male than the number of female parrots. How many male parrots are there?
```python def simple_math_problem() -> float: """ In a zoo, there are a total of 86 parrots. However, 9 fewer parrots are male than the number of female parrots. How many male parrots are there? """ total_parrots = 86 # Total number of parrots in the zoo difference_in_parrots = 9 # Difference between the number of ma...
Jim has saved $135 this month and his sister saved $270. What percentage more did his sister save compared to Jim?
```python def simple_math_problem() -> float: """ Jim has saved $135 this month and his sister saved $270. What percentage more did his sister save compared to Jim? """ jim_savings = 135 # Jim's savings sister_savings = 270 # Sister's savings difference_in_savings = sister_savings - jim_saving...
In a spy movie, the secret agent was given 6 tasks to complete in 24 hours. If he needs to complete 3 tasks in 8 hours, how many hours does he have left to finish the other 3 tasks?
```python def simple_math_problem() -> float: """ In a spy movie, the secret agent was given 6 tasks to complete in 24 hours. If he needs to complete 3 tasks in 8 hours, how many hours does he have left to finish the other 3 tasks? """ total_hours = 24 # Total hours available to complete all tasks hours_spent_on_first...
Mark, the mechanic, spends 1 hour diagnosing vehicle issues, 2 hours repairing them, and 0.75 hours testing them. One day, the car he was working on had a particularly stubborn issue and it took him three times as long to repair it. How long did Mark spend on fixing the car that day?
```python def simple_math_problem() -> float: """ Mark, the mechanic, spends 1 hour diagnosing vehicle issues, 2 hours repairing them, and 0.75 hours testing them. One day, the car he was working on had a particularly stubborn issue and it took him three times as long to repair it. How long did Mark spend on fi...
A group of 9 friends went to the store and bought 2 pizzas for $18 each, 1 box of chicken wings for $12, and 3 bottles of soda for $2.50 each. How much did each person pay if they split the cost equally?
```python def simple_math_problem() -> float: """ A group of 9 friends went to the store and bought 2 pizzas for $18 each, 1 box of chicken wings for $12, and 3 bottles of soda for $2.50 each. How much did each person pay if they split the cost equally? """ number_of_pizzas = 2 pizza_price = 18.0 ...
Tyler bought a bag of 50 candies for Halloween. He kept six for himself, gave four to his little sister, and traded 10 with his friend for a toy car. How many candies did he have left?
```python def simple_math_problem() -> float: """ Tyler bought a bag of 50 candies for Halloween. He kept six for himself, gave four to his little sister, and traded 10 with his friend for a toy car. How many candies did he have left? """ # Total candies initially total_candies = 50 # Candies kept for himself candies_k...
Student: A rectangular garden has a width of 10 meters and an area of 120 square meters. What is the length of the garden?
```python def simple_math_problem() -> float: """ A rectangular garden has a width of 10 meters and an area of 120 square meters. What is the length of the garden? """ garden_width = 10 # width of the garden in meters garden_area = 120 # area of the garden in square meters garden_length = gard...
A car rental company charges $20 per day for a car rental. How much would it cost to rent the car for a week (7 days)?
```python def simple_math_problem() -> float: """ A car rental company charges $20 per day for a car rental. How much would it cost to rent the car for a week (7 days)? """ daily_rental_cost = 20.0 # Cost per day in dollars number_of_days = 7 # Number of days to rent the car total_rental_cost ...
A car drives at a speed of 60 km/h for 2 hours, and then at a speed of 80 km/h for 1 hour. What is the average speed of the car for the entire trip?
```python def simple_math_problem() -> float: """ A car drives at a speed of 60 km/h for 2 hours, and then at a speed of 80 km/h for 1 hour. What is the average speed of the car for the entire trip? """ speed_first_part = 60 # km/h time_first_part = 2 # hours speed_second_part = 80 # km/h ...
Blane is five times as old as Colie. In 7 years, Blane's current age will be 60. What is Colie's current age?
```python def simple_math_problem() -> float: """ Blane is five times as old as Colie. In 7 years, Blane's current age will be 60. What is Colie's current age? """ # Define variables blane_age_in_7_years = 60 years_added = 7 # Calculate Blane's current age blane_current_age = blane_age_...
A rectangle has a length of 20 cm and a perimeter of 64 cm. What is its width?
```python def simple_math_problem() -> float: """ A rectangle has a length of 20 cm and a perimeter of 64 cm. What is its width? """ # Given values length = 20 # in cm perimeter = 64 # in cm # The formula for the perimeter of a rectangle is: perimeter = 2 * (length + width) # We can r...
Madison had 75 seashells. She decided to keep 35. Once she kept them, a third were lost. Later, she found 5 of them. How many seashells does Madison have now? Emily has 240 cents in dimes. She gives 50 cents to Sarah, and then gives half as many cents to Alex as she gave to Sarah. How many more dimes does Alex have tha...
```python def simple_math_problem() -> float: """ Madison had 75 seashells. She decided to keep 35. Once she kept them, a third were lost. Later, she found 5 of them. How many seashells does Madison have now? Emily has 240 cents in dimes. She gives 50 cents to Sarah, and then gives half as many cents to Alex as...
Camilla bought 3 packs of pencils. The first pack contains 12 pencils, the second pack contains 24 pencils, and the third pack contains 36 pencils. If she shares them equally among her 6 friends, how many pencils will each friend receive?
```python def simple_math_problem() -> float: """ Camilla bought 3 packs of pencils. The first pack contains 12 pencils, the second pack contains 24 pencils, and the third pack contains 36 pencils. If she shares them equally among her 6 friends, how many pencils will each friend receive? """ # Define the number of penc...
Student: The area of a rectangle is 56 square meters. The length of the rectangle is 8 meters. What is the width of the rectangle?
```python def simple_math_problem() -> float: """ Student: The area of a rectangle is 56 square meters. The length of the rectangle is 8 meters. What is the width of the rectangle? """ area_of_rectangle = 56 # square meters length_of_rectangle = 8 # meters # The formula for the area of a ...
Student: Eleven classmates went to a theme park with two teachers. Classmate tickets are $15 each and the total bill was $213. How many dollars is one teacher's ticket?
```python def simple_math_problem() -> float: """ Eleven classmates went to a theme park with two teachers. Classmate tickets are $15 each and the total bill was $213. How many dollars is one teacher's ticket? """ total_classmates = 11 total_teachers = 2 total_bill = 213 classmate_ticket_pri...
Grace, Liam, and Ethan are doing a science experiment to learn about the effects of different temperatures on plants. Grace is able to control the temperature 1/3 more accurately than Liam can. It takes Ethan 1/5 more time to conduct the experiment than it takes Grace. If Liam can complete the experiment in 4 hours, wh...
```python def simple_math_problem() -> float: """ Grace, Liam, and Ethan are doing a science experiment to learn about the effects of different temperatures on plants. Grace is able to control the temperature 1/3 more accurately than Liam can. It takes Ethan 1/5 more time to conduct the experiment than it takes...
Student: A train travels at a speed of 80 miles per hour for 2.5 hours. It then decreases its speed to 60 miles per hour for 1 hour. What is the total distance it traveled?
```python def simple_math_problem() -> float: """ A train travels at a speed of 80 miles per hour for 2.5 hours. It then decreases its speed to 60 miles per hour for 1 hour. What is the total distance it traveled? """ initial_speed_mph = 80 # initial speed in miles per hour initial_time_hours = 2.5...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
7