question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Eva has 4 boxes of cake, each box contains 6 cakes. If she needs to give 3 cakes to each of her 8 friends, how many cakes will be left? | def solve() -> int:
boxes_of_cakes = 4
cakes_in_each_box = 6
total_friends = 8
cakes_for_each_friend = 3
total_cakes = boxes_of_cakes * cakes_in_each_box
cakes_to_be_given = total_friends * cakes_for_each_friend
cakes_left = total_cakes - cakes_to_be_given
result = cakes_left
... |
Student: A flower bouquet contains roses and lilies in the ratio of 5:3. If 4 roses and 6 lilies are removed, the ratio becomes 1:1. What is the total number of flowers in the bouquet? | def solve() -> int:
roses = 5
lilies = 3
removed_roses = 4
removed_lilies = 6
total_roses = roses + removed_roses
total_lilies = lilies + removed_lilies
total_flowers = total_roses + total_lilies
result = total_flowers
return result
|
A company made $48,000 in profit after tax on $320,000 in revenue. What was the company's profit margin as a percentage? | def solve() -> int:
revenue = 320000
profit = 48000
profit_margin = (profit / revenue) * 100
result = profit_margin
return result
|
Student: A tank can hold 1000 liters of water at full capacity. Water is being drained from the tank at a rate of 10 liters per minute. How long will it take for the tank to be emptied? | def solve() -> int:
tank_capacity = 1000
drain_rate = 10
time = tank_capacity / drain_rate
result = time
return result
|
Lucy was ordering pizza for her friends. Lola was eating vegetables, while Kevin was eating beef. Lucy and her friend John chose a pizza with vegetables and sausage. The cost per pizza was $12.50, with an additional $1.50 per topping. If they ordered 4 pizzas, how much would they pay, including a $6.00 tip? | def solve() -> int:
num_pizzas = 4
cost_per_pizza = 12.50
cost_per_topping = 1.50
tip = 6.00
total_cost = (num_pizzas * cost_per_pizza) + (num_pizzas * cost_per_topping) + tip
result = total_cost
return result
|
Olivia has 20 sheep. Each of them produces 3 lbs of wool. Most of the wool is sold for $50, but one unique type of wool is sold for 7 times as much. How much does Olivia make from selling the wool? | def solve() -> int:
sheep = 20
wool_per_sheep = 3
price_per_regular_wool = 50
price_per_unique_wool = 7 * price_per_regular_wool
total_regular_wool = sheep * wool_per_sheep
total_unique_wool = wool_per_sheep
total_regular_wool_value = total_regular_wool * price_per_regular_wool
... |
A construction company has a budget of $10 million for a project. They spend 65% of the money on materials and 25% of the remaining on labor. How much money is left for other expenses? | def solve() -> int:
materials_spent = 10000000 * 0.65
remaining_money_after_materials = 10000000 - materials_spent
labor_spent = remaining_money_after_materials * 0.25
money_left = remaining_money_after_materials - labor_spent
result = money_left
return result
|
A person has 100 dollars and wants to buy three items, each of which costs 30 dollars. There is a discount of 10% for buying three items at once, but there is sales tax of 8%. How much money should the person bring to the store? | def solve() -> int:
num_items = 3
item_cost = 30
discount = 0.1
sales_tax = 0.08
total_cost = num_items * item_cost * (1 - discount)
total_cost_with_tax = total_cost * (1 + sales_tax)
money_to_bring = total_cost_with_tax - 100
result = money_to_bring
return result
|
Mia and Alex were rowing in a race. Together they covered a distance of 36 miles. Alex covered one-third of the distance covered by Mia. How many miles did Mia row? | def solve() -> int:
miles_covered_by_alex = 36 / 4
miles_covered_by_mia = 3 * miles_covered_by_alex
result = miles_covered_by_mia
return result
|
Javier makes a salad every evening. He uses 2 tablespoons of balsamic vinegar and tops with 1/2 cup of olive oil. A bottle of olive oil costs $8.99 and has 12 servings. After 20 days, how many bottles of olive oil will he have used? | def solve() -> int:
balsamic_vinegar = 2
olive_oil_per_serving = 1/2
cost_per_bottle = 8.99
servings_per_bottle = 12
days = 20
olive_oil_per_day = olive_oil_per_serving * servings_per_bottle
olive_oil_used = olive_oil_per_day * days
bottles_used = olive_oil_used / servings_per_bottl... |
If a speedboat can travel 60 miles on 5 gallons of gas, how many miles can it travel on 9 gallons of gas? | def solve() -> int:
distance_start = 60
gas_start = 5
gas_end = 9
distance_end = distance_start / gas_start * gas_end
result = distance_end
return result
|
Liam gets paid 1 dollar for every mile he bikes in a charity ride. For every 20 miles he bikes, Liam also gets a bonus of 5 dollars. If Liam bikes 150 miles, how much will he earn including bonuses? | def solve() -> int:
miles_biked = 150
bonus_miles = 20
bonus_amount = 5
num_bonuses = miles_biked // bonus_miles
total_bonus = num_bonuses * bonus_amount
total_earned = miles_biked + total_bonus
result = total_earned
return result
|
Amy is planning to go on a trip that costs $3000. She has to take a loan of $1000 from the bank at a rate of 20%. How much money will Amy need to pay in total for the trip? | def solve() -> int:
loan_amount = 1000
interest_rate = 0.20
trip_cost = 3000
interest_amount = loan_amount * interest_rate
total_cost = trip_cost + interest_amount
result = total_cost
return result
|
Ella plays the piano every day. If each session lasts 45 minutes and she practices 5 songs per session, and she learned 30 new songs in November, calculate the total number of minutes and songs she practiced. | def solve() -> int:
sessions = 30 / 5
minutes = sessions * 45
songs = sessions * 5
result = (minutes, songs)
return result
|
If a family owns 2 cats and 3 dogs, how many animal legs are in the house? | def solve() -> int:
cats = 2
dogs = 3
legs_per_cat = 4
legs_per_dog = 4
total_legs = cats * legs_per_cat + dogs * legs_per_dog
result = total_legs
return result
|
The sum of three consecutive numbers is 72. What are those three numbers? | def solve() -> int:
third_num = (72 / 3) + 1
first_num = third_num - 2
second_num = first_num + 1
result = (first_num, second_num, third_num)
return result
|
Student: Carlos runs 8 km every day. How many km will he run in 2 weeks? | def solve() -> int:
km_per_day = 8
days_per_week = 7
weeks = 2
total_km = km_per_day * days_per_week * weeks
result = total_km
return result
|
Emily is in charge of buying snacks for her department's meeting. There will be 4 people at the meeting and she wants to buy 3 cookies for each person. After she buys the cookies, 2 more people say they will attend. Emily decides to buy an extra cookie for each person. How many cookies will Emily need to buy in total? | def solve() -> int:
num_people = 4
cookies_per_person_initial = 3
total_cookies_initial = num_people * cookies_per_person_initial
additional_people = 2
cookies_per_person_additional = cookies_per_person_initial + 1
total_cookies_additional = (num_people + additional_peop... |
Anna's monthly salary is $3500. If she spends 25% of her salary on rent, how much does she save in a year? | def solve() -> int:
salary = 3500
rent = salary * 0.25
savings_per_month = salary - rent
savings_per_year = savings_per_month * 12
result = savings_per_year
return result
|
A grocery store sells milk for $3 per gallon. In a week, the store sells 400 gallons of milk. If the cost of making a gallon of milk is $1.5, what is the store's profit for a week? | def solve() -> int:
milk_cost = 1.5
milk_sales = 3 * 400
total_milk_cost = 400 * milk_cost
profit = milk_sales - total_milk_cost
result = profit
return result
|
Robert earned $320 for working 8 hours per day on 5 days. How much money did he earn in total for the 5 days? | def solve() -> int:
hours_per_day = 8
days_worked = 5
hourly_wage = 320
total_earnings = hours_per_day * days_worked * hourly_wage
result = total_earnings
return result
|
Samantha wants to bake 100 cookies for a school fundraiser. She needs 2 1/4 cups of sugar and 3/4 cups of flour for each batch of 12 cookies. How many cups of sugar and flour does she need altogether? | def solve() -> int:
cookies_to_bake = 100
cookies_per_batch = 12
sugar_per_batch = 2.25
flour_per_batch = 0.75
batches_to_bake = cookies_to_bake / cookies_per_batch
sugar_total = batches_to_bake * sugar_per_batch
flour_total = batches_to_bake * flour_per_batch
result = sugar_total, flour... |
Student: A rectangular field has a length of 50 meters and a width of 30 meters. What is the area of the field? | def solve() -> int:
length = 50
width = 30
area = length * width
result = area
return result
|
A bookshop is selling books at a discounted price of 30% off. If a book costs $20, what is the new price of the book? If John saves half of the money he will spend on the purchase of the book, how much money did he save? | def solve() -> int:
original_price = 20
discount_percentage = 30
new_price = original_price - original_price * (discount_percentage / 100)
total_savings = new_price / 2
result = total_savings
return result
|
Tim has six chickens and four ducks. Each chicken lays 2 eggs per day, and each duck lays 1 egg per day. Tim collects the eggs every day and sells them for 50 cents each. How much money does he make in a month (assume 30 days)? | def solve() -> int:
chicken_egg = 2
duck_egg = 1
chickens = 6
ducks = 4
days = 30
total_egg = (chicken_egg * chickens + duck_egg * ducks) * days
total_money = total_egg * 0.5
result = f'${total_money}'
result = total_money
return result
|
A car dealership has 125 cars on the lot. If they sell 1/5 of the cars and then receive 25 more cars, how many cars are on the lot? | def solve() -> int:
initial_cars_on_lot = 125
cars_sold = initial_cars_on_lot / 5
remaining_cars = initial_cars_on_lot - cars_sold + 25
result = remaining_cars
return result
|
John has a monthly budget for groceries of $400. He spends $60 each week on vegetables and $40 every two weeks on bread. How much does he have left after 4 weeks? | def solve() -> int:
budget = 400
spent_on_veg_each_week = 60
spent_on_bread_each_two_week = 40
spent_on_vegs = spent_on_veg_each_week * 4
spent_on_bread = spent_on_bread_each_two_week * 2
total_spent = spent_on_vegs + spent_on_bread
money_left = budget - total_spent
result... |
There's a local candy shop that sells small bags of candy for 3 dollars each. If Bob has 20 dollars, how many small bags of candy can he buy? | def solve() -> int:
dollar = 20
price_per_bag = 3
result = dollar / price_per_bag
result = round(result)
return result
|
Student: Sandra opened a savings account in the bank 8 years ago and deposited $12000. The bank pays an interest rate of 2% annually. How much money is in her account now? | def solve() -> int:
principal = 12000
interest_rate = 0.02
amount = principal * (1 + interest_rate) ** 8
result = amount
return result
|
Ella bought a bag of apples and a bunch of bananas for $27. If the bunch of bananas costs one third of the price of the bag of apples, how much did the bunch of bananas cost? | def solve() -> int:
totalPrice = 27
priceBananas = totalPrice / 4
result = priceBananas
return result
|
80% of customers decide to buy the product the first time they see it. 30% of these customers are returning buyers. How many returning buyers are there? | def solve() -> int:
num_customers = 100
percentage_first_time = 0.8
percentage_returning = 0.3
result = num_customers*percentage_first_time*percentage_returning
return result
|
Kyle has a rectangular pool that is 16 feet long, 8 feet wide, and 4 feet deep. He wants to fill it up with water and then empty it to check for leaks. He knows that he needs to fill the pool to its maximum capacity. He needs a total of 1,024 cubic feet of water. Water costs $0.005 per cubic inch. How much will he spen... | def solve() -> int:
length = 16
width = 8
depth = 4
pool_volume = length * width * depth
cubic_feet_to_cubic_inches = 1728
water_volume = pool_volume * cubic_feet_to_cubic_inches
water_cost_per_cubic_inch = 0.005
total_cost = water_volume * water_cost_per_cubic_inch
... |
Max has double the number of video games as Sam and six more video games than Olivia. If Sam has 12 video games, how many video games do they have in total? | def solve() -> int:
sam_games = 12
max_games = 2 * sam_games
olivia_games = max_games - 6
total_games = sam_games + max_games + olivia_games
result = total_games
return result
|
arah leaves her house and proceeds towards the grocery store. She walks for 20 minutes at a pace of 4 miles per hour, then runs at a pace of 6 miles per hour for 10 minutes, then walks again at 4 miles per hour for 15 minutes. What is the average speed at which she traveled? | def solve() -> int:
distance_walk1 = 4 * (20/60)
distance_run = 6 * (10/60)
distance_walk2 = 4 * (15/60)
total_distance = distance_walk1 + distance_run + distance_walk2
total_time = 45/60
average_speed = total_distance / total_time
result = average_speed
return result
|
The sum of two numbers is 36. One number is three times larger than the other number. What are the two numbers? | def solve() -> int:
sum_of_numbers = 36
second_number = sum_of_numbers/4
first_number = second_number*3
result = (first_number, second_number)
return result
|
John has three times as much money as Emily, and Emily has $50. How much money do they have together? | def solve() -> int:
Emily = 50
John = Emily * 3
Sum = Emily + John
result = Sum
return result
|
A recipe calls for 2 cups of flour for every 1 cup of sugar. If you want to make a cake with 4 cups of flour, how much sugar do you need to use? | def solve() -> int:
flour = 4
sugar = flour / 2
result = sugar
return result
|
There are 9 children in a class and they share 27 chocolate bars evenly. How many chocolate bars does each child get? | def solve() -> int:
class_size = 9
chocolate_bars = 27
chocolate_bars_per_child = chocolate_bars/class_size
result = chocolate_bars_per_child
return result
|
- Bella made some bracelets and necklaces with beads. She used 14 beads for each bracelet, 10 beads more than bracelets for each necklace, 8 beads less than necklaces for each bracelet, and 12 beads more than bracelets for each necklace. If she used 6 beads more than necklaces for each bracelet for the fifth set, how m... | def solve() -> int:
set1_b = 14
set1_n = set1_b + 10
set2_b = set1_n - 8
set2_n = set2_b
set3_b = set2_n + 8
set3_n = set3_b - 12
set4_b = set3_n
set4_n = set4_b + 12
set5_b = set4_n + 6
set5_n = set5_b - 6
total_b = set1_b + set2_b + set3_b + set4_b + set5_b
total_n... |
Student: A student was issued 1000 coupons. He used 20% of them in each of his first two visits but 50% on his third visit. What is the total coupons used? | def solve() -> int:
coupons_issued = 1000
coupons_first_two_visits = 0.2 * coupons_issued + 0.2 * coupons_issued
coupons_third_visit = 0.5 * coupons_issued
total_coupons_used = coupons_first_two_visits + coupons_third_visit
result = total_coupons_used
return result
|
Joe has 8 palm trees that bear 8 coconuts each. If Joe collects coconut from all palm trees every 3 days, how many coconuts will he have after 12 days? | def solve() -> int:
palm_trees = 8
coconuts_per_tree = 8
days = 12
collection_interval = 3
total_coconuts = palm_trees * coconuts_per_tree * (days // collection_interval)
result = total_coconuts
return result
|
Lucas wants to make a wallpaper border that covers the top and bottom surfaces of his room and droops 4 inches on both sides, how long should the border be if the room is 12 feet by 15 feet? | def solve() -> int:
room_length = 12 * 12
room_width = 15 * 12
border_length = room_length + 2 * 4
border_width = room_width + 2 * 4
total_border_length = 2 * border_length + 2 * border_width
result = total_border_length
return result
|
A painting that costs $600 is on sale for 20% off. What is the sale price of the painting? | def solve() -> int:
original_price = 600
discount_rate = 0.2
sale_price = original_price * (1 - discount_rate)
result = sale_price
return result
|
If the price of a candy bar is $0.75, how many candy bars can you buy with $15? | def solve() -> int:
price = 0.75
money = 15
bars = money / price
result = int(bars)
return result
|
-Copy and paste the example format for each question Some possible questions are: A school collected $3000 from a fundraiser and decided to spend 40% on buying books and 30% on improving the playground. The remaining money was equally divided among 5 classes for field trips. How much money did each class get for field ... | def solve() -> int:
spent = 0.4 * 3000 + 0.3 * 3000
remain = 3000 - spent
per_class = remain / 5
result = per_class
return result
|
A restaurant has 52 patrons. 25% of the patrons are ordering salads. 10% of the rest are ordering beverages. How many patrons are not ordering salads or beverages? | def solve() -> int:
total_patrons = 52
patrons_ordering_salad = total_patrons * 0.25
patrons_not_ordering_salad = total_patrons - patrons_ordering_salad
patrons_not_ordering_beverages = patrons_not_ordering_salad * 0.9
result = patrons_not_ordering_beverages
return result
|
A pharmacy charges $5 per prescription and a $3 sign up fee. How much would it cost to fill 4 prescriptions? | def solve() -> int:
prescriptions = 4
cost_per_prescription = 5
signup_fee = 3
total_cost = (prescriptions * cost_per_prescription) + signup_fee
result = total_cost
return result
|
Rob has one third as many marbles as Joe. If Joe has 60 marbles, how many does Rob have? | def solve() -> int:
number_of_marbles_rob = 60/3
result = number_of_marbles_rob
return result
|
David has $250 in his wallet. He spends seven-tenths of that. How much does he have left? | def solve() -> int:
money = 250
david_spends = money * (7/10)
result = money - david_spends
return result
|
A man has a rectangular garden with an area of 120 square feet. The length of the garden is twice the width. He wants to put a fence around the garden. The cost of the fence is $5 per foot. How much will it cost to put the fence? | def solve() -> int:
garden_area = 120
length_to_width_ratio = 2
fence_cost = 5
width = (garden_area / length_to_width_ratio) ** 0.5
length = width * length_to_width_ratio
fence_length = 2 * (length + width)
fence_cost_total = fence_length * fence_cost
result = fence_cost_total
retur... |
Rick needs to run 5 miles every day for 10 days. However, on the 5th day, he twisted his ankle and could only run 3 miles. How many miles did he run in total by the end of the 10th day? | def solve() -> int:
miles_per_day = 5
total_days = 10
miles_lost = 2
total_miles_ran = (miles_per_day * 4) + (3) + (miles_per_day * 5)
result = total_miles_ran
return result
|
Alex has $500 in his savings account. Every month, he deposits $75. After 1 year, how much money does Alex have in his savings account? | def solve() -> int:
starting_savings = 500
monthly_deposit = 75
total_deposits = monthly_deposit * 12
total_savings = starting_savings + total_deposits
result = total_savings
return result
|
Eric is planting a flower bed that has a perimeter of 100 ft. For a rectangle flower bed, what is the maximum area Eric can plant? | def solve() -> int:
perimeter = 100
length = perimeter/2
width = length
area = length * width
result = area
return result
|
Mia bought 4 bracelets and 7 earrings. If each bracelet costs $5 and an earring costs the same as two bracelets, how much change will Mia get back if she gave the cashier 5 $20 bills? | def solve() -> int:
bracelet_cost = 5
earring_cost = bracelet_cost * 2
bracelets = 4
earrings = 7
bills = 5
bill_value = 20
total_cost = bracelet_cost * bracelets + earring_cost * earrings
total_money = bills * bill_value
change = total_money - total_cost
... |
Student: David is going shopping for his son's birthday. He buys a toy car for $13, a game for $20, and a book that costs half the price of the toy car. How much does David spend on the gifts? | def solve() -> int:
toy_car_price = 13
game_price = 20
book_price = toy_car_price / 2
total_price = toy_car_price + game_price + book_price
result = total_price
return result
|
On Monday, 150 cars passed through a busy intersection. The number of cars on Tuesday was 10% higher than on Monday. On Wednesday, there were 20% less cars compared to Tuesday, and the same amount passed by on Thursday. On Friday and Saturday, 50 and 60 cars passed by respectively. How many cars passed by during these ... | def solve() -> int:
monday_cars = 150
tuesday_cars = monday_cars * 1.1
wednesday_cars = tuesday_cars * 0.8
thursday_cars = wednesday_cars
total_cars = monday_cars + tuesday_cars + wednesday_cars + thursday_cars + 50 + 60
result = total_cars
return result
|
Result: $490 Rachel works as a babysitter and also sells handmade crafts at the local farmers market. Rachel charges $15/hr for babysitting and sells her crafts for $25 each. If she babysits for 12 hours and sells 4 crafts, how much money does she make? | def solve() -> int:
babysitting_earnings = 15 * 12
craft_earnings = 25 * 4
total_earnings = babysitting_earnings + craft_earnings
result = total_earnings
return result
|
Max's salary is $4000.00 per month. He pays $1200.00 for rent, $500.00 for his car payment, $250.00 on utilities, and $100.00 on groceries. If he wants to save 70% of his remaining money, how much money will he have saved by the end of the month? | def solve() -> int:
salary = 4000.00
rent = 1200.00
car_payment = 500.00
utilities = 250.00
groceries = 100.00
remaining_money = salary - rent - car_payment - utilities - groceries
savings = 0.70 * remaining_money
result = savings
return result
|
Roberto bought 24 candy bars for $17.50. How much did he pay for one candy bar? | def solve() -> int:
total_cost = 17.50
candy_bars = 24
each_cost = total_cost / candy_bars
result = each_cost
return result
|
Jake worked for 4 years and 6 months as an electrician and 1 year and 8 months as a painter. How many months of total work experience does he have? | def solve() -> int:
total_months = 4*12 + 6 + 1*12 + 8
result = total_months
return result
|
Thomas bought 4 packs of gum at the gas station and then 12 packs of gum at the pharmacy. On the way back home, he shared 2 packs with his brother. How many packs of gum did Thomas end up with? Walmart is selling backpacks at 30% off the original price, which is $42. What was the original price of the backpack? | def solve() -> int:
gas_station_packs = 4
pharmacy_packs = 12
shared_packs = 2
total_packs = gas_station_packs + pharmacy_packs - shared_packs
original_price = 42
discount_percentage = 30
discount_amount = original_price * (discount_percentage / 100)
sa... |
Student: For a birthday party, Heather bought 10 balloons and half as many streamers as balloons. The balloons cost $3 each and the streamers cost $6 each. How much did everything cost? | def solve() -> int:
balloons = 10
streamers = balloons / 2
cost_balloons = balloons * 3
cost_streamers = streamers * 6
total_cost = cost_balloons + cost_streamers
result = total_cost
return result
|
Jane took a train and must pay the fare. The fare costs $9. Jane had already saved $5, how much more money does Jane need in order to pay the fare? | def solve() -> int:
fare_cost = 9
saved_money = 5
money_needed = fare_cost - saved_money
result = abs(money_needed)
return result
|
A construction company has a fixed cost of $500,000 to build the first house and double that cost for any subsequent house. If the company built 5 houses and the second house cost $1,000,000, how much money did the company spend on building all houses? | def solve() -> int:
first_house_cost = 500000
second_house_cost = 1000000
total_cost = first_house_cost + second_house_cost + (second_house_cost - first_house_cost) * 3
result = total_cost
return result
|
Possible questions and programs: Ali has 12 liters of lemonade and he wants to share it equally with his 9 friends. How much lemonade will each person get if they use 250 ml cups? | def solve() -> int:
lemonade_ml = 12 * 1000
people = 9 + 1
lemonade_per_person = lemonade_ml / people
cups_per_person = lemonade_per_person / 250
result = cups_per_person
return result
|
Student: A store is selling apples for $1.5 each and oranges for $2 each. A customer buys 5 apples and 3 oranges. What is the total cost? | def solve() -> int:
apples = 5
oranges = 3
price_apple = 1.5
price_orange = 2
total_cost = apples * price_apple + oranges * price_orange
result = total_cost
return result
|
Emily and James are soccer players. Emily scored six goals, which is five less than twice as many goals as James scored. If they scored 18 goals combined, how many goals did James score? | def solve() -> int:
x = 7
result = x
return result
|
Jake is saving money for a video game. He earns $5 per week for doing chores. He also gets $10 for his birthday and $20 for Christmas. The video game costs $60. How many weeks does he need to save for the video game? | def solve() -> int:
earn_per_week = 5
birthday_money = 10
christmas_money = 20
game_price = 60
gifts_money = birthday_money + christmas_money
money_to_save = game_price - gifts_money
weeks_to_save = money_to_save / earn_per_week
result = weeks_to_save
return result
|
Emily wants to buy a new bike for $800. If she wants to save up in 12 months, how much does she need to save per month if she has already saved $200? | def solve() -> int:
monthly_savings = (800 - 200) / 12
result = monthly_savings
return result
|
A rectangular field is 120 m long and 80 m wide. John marks one-third of the length and half of the width with red paint. What's the area of the painted rectangle? | def solve() -> int:
length = 120
width = 80
red_length = length/3
red_width = width/2
painted_area = red_length * red_width
result = painted_area
return result
|
Jenny wants to go on a roller coaster that requires a minimum age of 14. Jenny's older brother is 17 years old, and Jenny is 3/4 as old as her brother. How many more years does Jenny need to wait to be able to go on the ride? | def solve() -> int:
brother_age = 17
jenny_age = brother_age * 3/4
minimum_age = 14
years_to_wait = minimum_age - jenny_age
result = years_to_wait
return result
|
Amelie has 10 more dolls than twice the number of days in a week. If she has 24 dolls, how many days are in a week? | def solve() -> int:
dolls = 24
twice_days = (dolls - 10) / 2
days = twice_days / 2
result = days
return result
|
Student: A bookshelf has 4 shelves. If each shelf is able to hold 15 books, how many books can the whole bookshelf hold? | def solve() -> int:
num_shelves = 4
books_per_shelf = 15
total_books = num_shelves * books_per_shelf
result = total_books
return result
|
Student: The Smith family went out to eat dinner and the total cost of the meal was $85. If there were 4 people in the family, how much did each person pay? | def solve() -> int:
total_cost = 85
people = 4
each_paid = total_cost / people
result = each_paid
return result
|
Q10: Samantha earns $7200 after tax per month and needs to pay $500 for her car loan. She saves 10% of her income for her children's education. How much money does she have left for her other monthly expenses? | def solve() -> int:
amount_with_tax = 7200
car_loan = 500
saving = amount_with_tax * 0.1
result = amount_with_tax - car_loan - saving
return result
|
-Copy the following format to generate questions and **replace the content with your own**. Amy has 15 cookies and she gives away 3 to Bob and 4 to Cindy. Bob already has 7 cookies and Cindy has 10. How many cookies does each person have now? | def solve() -> int:
amy_init = 15
amy_final = amy_init - 3 - 4
bob_init = 7
bob_final = bob_init + 3
cindy_init = 10
cindy_final = cindy_init + 4
total = amy_final + bob_final + cindy_final
result = total
return result
|
John wants to go on a road trip. Gas costs $3.50 per gallon and he needs to fill up his car which has a 15 gallon tank. He also wants to get snacks and drinks for the trip that total $20.00. How much money will John spend in total? | def solve() -> int:
gas_cost_per_gallon = 3.50
tank_size = 15
snacks_and_drinks_cost = 20.00
total_gas_cost = gas_cost_per_gallon * tank_size
total_cost = total_gas_cost + snacks_and_drinks_cost
result = total_cost
return result
|
Lynne has 3 coupons each worth $7 and wants to use them to buy items that cost an even amount. What is the maximum amount of money Lynne can spend? | def solve() -> int:
coupon = 7
number_coupon = 3
total_coupon = coupon * number_coupon
result = total_coupon
return result
|
Samantha invested $200 in stocks. Liam invested $70 less than four times as much as Samantha. How much did Samantha invest in stocks? | def solve() -> int:
samantha_investment = 200
liam_investment = 4 * samantha_investment - 70
result = samantha_investment
return result
|
Rachel runs 10 km in 1 hour, but due to construction on her usual route, she has to run an extra 4 km. How much longer will it take Rachel to complete her run if she maintains the same speed? | def solve() -> int:
distance_initial = 10
time_initial = 1
distance_extra = 4
total_distance = distance_initial + distance_extra
speed = total_distance / time_initial
time_extra = distance_extra / speed
result = time_extra
return result
|
A rectangular garden has a length of 12 meters and width of 8 meters. How much fencing would be needed to surround the garden on all sides? | def solve() -> int:
length = 12
width = 8
perimeter = 2 * (length + width)
result = perimeter
return result
|
A hotel charges $120 per night for a room. If you stay for 5 nights or more, you get a 10% discount. If John stays for 9 nights, how much does he pay? | def solve() -> int:
room_price = 120
num_nights = 9
if num_nights >= 5:
discount = 0.1
else:
discount = 0
total_price = room_price * num_nights * (1 - discount)
result = total_price
return result
|
Alex lifts weights for 30 minutes every Monday through Wednesday. Then he lifts weights for twice as long as he did on Monday every Thursday and Friday. How many minutes will he lift weights in a month with 5 weeks? | def solve() -> int:
monday_minutes = 30
tuesday_minutes = 30
wednesday_minutes = 30
thursday_minutes = monday_minutes * 2
friday_minutes = monday_minutes * 2
weekly_minutes = monday_minutes + tuesday_minutes + wednesday_minutes + thursday_minutes + friday_minutes
monthly_minutes = weekly_min... |
Amanda wants to buy a car that costs $5000. She has saved up $1500 so far and makes $400 a week. How many weeks will it take for her to save enough money to buy the car? | def solve() -> int:
total_cost = 5000
current_savings = 1500
weekly_income = 400
weeks_needed = (total_cost - current_savings) / weekly_income
result = weeks_needed
return result
|
The temperature at 8pm is 18°C and it continuously drops by 0.7°C every hour. What is the temperature at 10pm? | def solve() -> int:
startTemperature = 18
rate = 0.7
hours = 2
finalTemperature = startTemperature - rate * hours
result = finalTemperature
return result
|
A total of $8400 is invested in three bank accounts. One account pays 3% interest, another pays 5%, and the third pays 7%. If the interest from all three accounts is $430, how much is invested in the account that pays 7%? | def solve() -> int:
total_investment = 8400
interest_earned = 430
x = total_investment / 100
amount_in_3_percent_account = x
amount_in_5_percent_account = x
amount_in_7_percent_account = x
interest_from_3_percent_account = amount_in_3_percent_account * 0.03
interest_from_5_percent_accoun... |
At a farmer's market, 2 dozen eggs cost $6. If Alex bought 12 dozen eggs, how much money in dollars did he spend? | def solve() -> int:
total_amount = 2 * 6 * 12
result = total_amount
return result
|
Emma is buying tickets for a concert at a rate of 5 tickets every 2 minutes. If there are 200 tickets available for the concert, and she has been buying tickets for 15 minutes, how many more tickets does she need to reach her target? | def solve() -> int:
tickets_per_minute = 5/2
total_minutes = 15
total_tickets_bought = tickets_per_minute * total_minutes
tickets_left_to_buy = 200 - total_tickets_bought
result = tickets_left_to_buy
return result
|
A classroom has 24 desks and 36 chairs. If 8 desks and 12 chairs are removed, how many desks and chairs are left? | def solve() -> int:
desk = 24
chair = 36
desk_removed = 8
chair_removed = 12
desk_left = desk - desk_removed
chair_left = chair - chair_removed
result = desk_left + chair_left
return result
|
Student: Omar can sell popcorn at a rate of 5 boxes per hour at a movie theater and 4 boxes per hour at a park. He worked for 12 hours a week for 4 weeks. Each week, he spent 8 hours at the movie theater and 4 hours at the park. How many boxes of popcorn did he sell in a month? | def solve() -> int:
movie_theater_rate = 5
park_rate = 4
hours_per_week = 12
weeks = 4
movie_theater_hours = 8
park_hours = 4
movie_theater_boxes = movie_theater_rate * movie_theater_hours * weeks
park_boxes = park_rate * park_hours * weeks
total_boxes = movie_theater_boxes + p... |
Thomas has 24 pencils and wants to divide them equally among 3 students. How many pencils did each student receive? | def solve() -> int:
pencils = 24
students = 3
pencils_per_student = pencils / students
result = pencils_per_student
return result
|
A supermarket needs to order bags of rice for their customers. Each bag weighs 5 kg. The store expects to sell 500 kg of rice within the next three days. They expect to sell 20% of the rice on the first day, 30% on the second day, and the remaining on the third day. How many bags of rice should the store order? | def solve() -> int:
kg_rice = 500
percentage_day1 = 0.20
percentage_day2 = 0.30
kg_day1 = kg_rice * percentage_day1
kg_day2 = kg_rice * percentage_day2
kg_day3 = kg_rice - kg_day1 - kg_day2
bags_needed = (kg_day1 + kg_day2 + kg_day3) / 5
result = int(bags_needed)
return result... |
A juice shop sold 90 cups of juice per day last week. This week, they sold 25% more cups of juice per day than last week. How many cups of juice did they sell in total over the two weeks? | def solve() -> int:
juice_last_week = 90
juice_this_week = int(juice_last_week * 1.25)
total_juice_sold = (juice_last_week + juice_this_week) * 7
result = total_juice_sold
return result
|
If a car is traveling at 80 kilometers per hour and it needs to travel 160 kilometers, what is the total distance as the car will cover after 2 hours of travel? | def solve() -> int:
speed = 80
time = 2
distance = speed*time
result = distance
return result
|
Student: Finn has $15 to spend at the toy store. He sees some stuffed animals that cost $6 each, a toy car which costs $8, and a bubble gun that costs $3. If Finn wants to buy 1 stuffed animal and 1 toy car, how much money will he have left after that? | def solve() -> int:
stuffed_animal_price = 6
toy_car_price = 8
bubble_gun_price = 3
finns_money = 15
total_price = stuffed_animal_price + toy_car_price
remaining_money = finns_money - total_price
result = remaining_money
return result
|
Student: A movie theater has 300 seats. If 175 seats are taken, how many seats are empty? | def solve() -> int:
total_seats = 300
taken_seats = 175
empty_seats = total_seats - taken_seats
result = empty_seats
return result
|
A car travels at a speed of 65 miles per hour. How far can the car travel in 7 hours? | def solve() -> int:
speed = 65
time = 7
distance = speed*time
result = distance
return result
|
Ava has seven times as many toys as Mia, and two fewer than Logan. Logan has 19 toys. How many toys do Ava, Mia, and Logan have combined? | def solve() -> int:
logans_toys = 19
avas_toys = logans_toys - 2
mias_toys = avas_toys / 7
total_toys = logans_toys + avas_toys + mias_toys
result = total_toys
return result
|
A volleyball court measures 18 meters by 9 meters and is surrounded by a fence. Inside the court, there is a rectangular area measuring 6 meters by 3 meters. What is the total length of fencing required to cover both the court and the central area? | def solve() -> int:
court_length = 18
court_width = 9
central_area_length = 6
central_area_width = 3
court_perimeter = 2 * (court_length + court_width)
central_area_perimeter = 2 * (central_area_length + central_area_width)
total_fencing_required = court_perimeter + central_area_pe... |
Possible questions and programs: Kevin bought three books for $18 in total and four pens for $8 in total. How much would he need to pay, if he would only buy two books and one pen? | def solve() -> int:
book_price = 18 / 3
pen_price = 8 / 4
total_cost = 2 * book_price + 1 * pen_price
result = total_cost
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.