question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
If Sarah rode a bike 10 miles on Wednesday and rode 3 miles more than twice as far as Wednesday on Thursday, how many miles did she ride in total in the two days? | def solve() -> int:
distance_wednesday = 10
distance_thursday = 2*distance_wednesday + 3
result = distance_wednesday + distance_thursday
return result
|
Tom has 5 apples and wants to purchase twice as much for his apple pie recipe. If he wants to split the apples equally into 3 groups, how many apples are in each group? | def solve() -> int:
apples = 5
purchased_apples = 2 * apples
total_apples = apples + purchased_apples
groups = 3
apples_per_group = total_apples // groups
result = apples_per_group
return result
|
At a sporting goods store, a basketball costs $25, a football costs $15, and a soccer ball costs $20. The Brown family buys 2 basketballs, 3 footballs, and 1 soccer ball. How much do they spend in total? | def solve() -> int:
basketball_cost = 25
football_cost = 15
soccer_ball_cost = 20
basketball_quantity = 2
football_quantity = 3
soccer_ball_quantity = 1
total_cost = (basketball_cost * basketball_quantity) + (football_cost * football_quantity) + (soccer_ball_cost * soccer_ball_quan... |
Kyle and Luke are mixing syrup and ice-cream for their own ice cream shop. If the mix ratio is 1 part syrup to 4 parts ice-cream, and they have 30 liters of syrup, how many liters of ice-cream do they need? | def solve() -> int:
amount_syrup = 30
ratio = 1/4
amount_ice_cream = amount_syrup / ratio
result = amount_ice_cream
return result
|
A recipe calls for 3/4 cup of sugar, but a baker only has 1/3 cup of sugar. How much more sugar does the baker need to buy? | def solve() -> int:
sugar_needed = 3/4
sugar_have = 1/3
sugar_needed = sugar_needed - sugar_have
result = "Your answer here"
return result
|
John purchased two shirts for a total of $89. If one shirt cost $23 more than the other, what is the cost of the more expensive shirt? | def solve() -> int:
shirt1_cost = 0
shirt2_cost = 0
total_cost = 89
shirt1_cost = 33
shirt2_cost = shirt1_cost + 23
result = shirt2_cost
return result
|
Student: Hannah and Noah shared a pizza and a salad. The pizza cost $12 and the salad cost $6. Hannah paid $11 and Noah paid the rest. How much more did Noah pay than Hannah? | def solve() -> int:
pizza_cost = 12
salad_cost = 6
hannah_paid = 11
total_cost = pizza_cost + salad_cost
noah_paid = total_cost - hannah_paid
difference = noah_paid - hannah_paid
result = difference
return result
|
A chemist needs to mix 300 mL of a solution containing 50% alcohol with 200 mL of a solution containing 30% alcohol. What percentage concentration of alcohol will the new solution have? | def solve() -> int:
alcohol_total = 300*0.5 + 200*0.3
total_volume = 300 + 200
percentage = alcohol_total/total_volume * 100
result = percentage
return result
|
Linda has one box of 16 oranges, four boxes of 12 oranges, and 2 boxes of 20 oranges. How many oranges does Linda have in total? | def solve() -> int:
amount_of_oranges = 16 + (4 * 12) + (2 * 20)
result = amount_of_oranges
return result
|
Throughout 3/5ths of the time it took Casey to bake 36 cupcakes, Jamie was writing a book. Megan spent three times as much this time (as Casey spent baking) painting. If Jamie spent 4 weeks writing, how many weeks did Megan spend painting? | def solve() -> int:
cupcakes_baked = 36
time_spent_writing = 4
time_spent_baking = (5/3) * time_spent_writing
time_spent_painting = 3 * time_spent_baking
weeks_spent_painting = time_spent_painting / 7
result = weeks_spent_painting
return result
|
Mr. Singh employed 3 painters to paint his office space. They worked for 7 hours on the first day, 11 hours on the second day, and finished the job after working 20 hours on the third day. If Mr. Singh paid each of them $25 per hour of work, what was the total amount of money they earned in total? | def solve() -> int:
num_painters = 3
day1_hours = 7
day2_hours = 11
day3_hours = 20
hourly_rate = 25
total_hours = num_painters * (day1_hours + day2_hours + day3_hours)
total_earned = total_hours * hourly_rate
result = total_earned
return result
|
-Have each question in a new line and separate solutions with 2 blank lines Some possible questions and solutions are: Mary has a coupon for 25% off any item at a bookstore. She wants to buy a hardcover book that costs $24 and a paperback book that costs $12. How much will she pay after using the coupon on the more exp... | def solve() -> int:
discount = 0.25 * 24
total = 24 - discount + 12
result = total
return result
|
Sara bought 36 pencils and wants to distribute them equally among her 4 friends. How many pencils will each friend get? | def solve() -> int:
num_pencils = 36
num_friends = 4
pencils_per_friend = num_pencils // num_friends
result = pencils_per_friend
return result
|
A classroom has 25 students. If the ratio of boys to girls is 2:3, how many girls are there in the classroom? | def solve() -> int:
ratio = 2/3
total_students = 25
boys = total_students / (ratio + 1)
girls = total_students - boys
result = girls
return result
|
Two friends were planning to buy a chair together. It cost a total of $100. They intended to split the cost equally but Julia ended up paying $20 more than what she was supposed to pay. How much did each one pay? | def solve() -> int:
costofchair = 100
costperperson = costofchair / 2
extraowed = 20
totalowed = costofchair + extraowed
owedpereperson = totalowed / 2
result = owedpereperson
return result
|
Lara has 10 marbles in her bag. She gives 3 of them to her brother and 2 of them to her sister. Then she plays a game with her friend and loses 4 marbles. Her friend feels sorry for her and gives her back 2 marbles. Later, Lara finds 3 more marbles on the ground and puts them in her bag. How many marbles does she have ... | def solve() -> int:
marbles = 10
marbles = marbles - 3 - 2
marbles = marbles - 4
marbles = marbles + 2
marbles = marbles + 3
result = marbles
return result
|
A toy store sells 100 toys per day on weekdays and a total of 500 toys on weekends. If the toy store is open for 9 hours every day, how many toys are sold in a week? | def solve() -> int:
weekdays_toys_per_day = 100
weekend_toys_per_day = 500
hours_per_day = 9
toys_sold_weekdays = weekdays_toys_per_day * 5
toys_sold_weekend = weekend_toys_per_day * 2
toys_sold_week = toys_sold_weekdays + toys_sold_weekend
result = toys_sold_week
return r... |
A team of 10 people are going to a baseball game. Each ticket costs $20. If they want to buy 2 medium pizzas for $12 each, how much money will they spend in total? | def solve() -> int:
num_people = 10
ticket_cost = 20
num_pizzas = 2
pizza_cost = 12
total_cost = (num_people * ticket_cost) + (num_pizzas * pizza_cost)
result = total_cost
return result
|
Possible questions and programs: Bethany collects 12 stickers for every 5 books she reads. She has 20 books at home and she borrows 3 books from each of her 4 friends. Then she trades 1/6 of her stickers for 2 more books. How many stickers does she have left after reading all the books? | def solve() -> int:
stickers = 0
books = 20
books += 3 * 4
stickers += 12 * (books // 5)
stickers -= stickers // 6
books += 2
stickers += 12 * (books // 5)
result = stickers
return result
|
A store has a sale of 30% off on all items. A sweater originally costs $50. What is the final price after the discount? | def solve() -> int:
original_price = 50
discount_percentage = 0.3
discount_amount = original_price*discount_percentage
final_price = original_price - discount_amount
result = final_price
return result
|
Alice, Bob, and Charlie are sharing pizzas for lunch. Alice eats 8 more slices than Bob, but Bob eats one third as many slices as Charlie. If Charlie eats 18 slices, how many slices do they eat in total? | def solve() -> int:
charlie = 18
bob = charlie / 3
alice = bob + 8
total = charlie + bob + alice
result = total
return result
|
If David's candy jar has twice the amount of candy as Maria's, and Maria has 30 pieces of candy, and John has 10 pieces more than Maria, how many pieces of candy do they have combined? | def solve() -> int:
maria_candy = 30
david_candy = 2 * maria_candy
john_candy = maria_candy + 10
total_candy = maria_candy + david_candy + john_candy
result = total_candy
return result
|
A student spends 3 hours and 15 minutes studying. Each study session lasts 45 minutes and there are 5 sessions. How many minutes did the student take to take a break between each study session? | def solve() -> int:
total_time = 3*60 + 15
num_sessions = 5
session_time = 45
total_session_time = num_sessions * session_time
break_time = total_time - total_session_time
break_between_sessions = break_time // (num_sessions - 1)
result = break_between_sessions
return result
|
A hardware store sells hammers for $20, saws for $25, and drills for $30. If a customer buys 1 hammer, 2 saws, and 3 drills, how much do they have to pay? | def solve() -> int:
hammer_cost = 20
saw_cost = 25
drill_cost = 30
hammer_qty = 1
saw_qty = 2
drill_qty = 3
total = (hammer_cost*hammer_qty) + (saw_cost*saw_qty) + (drill_cost*drill_qty)
result = total
return result
|
Student: Serena takes 4 hours to read a book. If she reads for 45 minutes each day, how many days does it take her to finish the book? | def solve() -> int:
time_to_read_book = 4
time_to_read_per_day = 45
time_to_read_per_day_in_hours = time_to_read_per_day / 60
days_to_finish_book = time_to_read_book / time_to_read_per_day_in_hours
result = round(days_to_finish_book)
return result
|
Possible questions and programs: The mean height of 20 students in a class is 168 cm. Sam is 12 cm taller than the mean height and Kim is 8 cm shorter than Sam. What is Kim's height in meters? | def solve() -> int:
mean_height_m = 168 / 100
sam_height_m = mean_height_m + 0.12
kim_height_m = sam_height_m - 0.08
result = kim_height_m
return result
|
Sam invested $2000 in stock market for 5 years. He earned an annual simple interest of 6%. How much money did he receive after 5 years? | def solve() -> int:
principal = 2000
time = 5
rate = 6
simpleInterest = (principal * time * rate) / 100
totalAmount = principal + simpleInterest
result = totalAmount
return result
|
A trapezoid-shaped stage measures 10 meters across the front, 13 meters across the back and has a depth of 6 meters. A circular drum set takes up 4 square meters of space on the stage. What is the total area of the stage that is not covered by the drum set? | def solve() -> int:
front = 10
back = 13
depth = 6
drum_set_area = 4
trapezoid_area = 0.5 * (front + back) * depth
total_area = trapezoid_area - drum_set_area
result = total_area
return result
|
Sarah has 3 green pens and 5 black pens. Assuming she buys 2 more pens, one green and one black, what percent of the total pens are green? | def solve() -> int:
total_pens = 10
green_pens = 4
percent_green = (green_pens / total_pens) * 100
result = percent_green
return result
|
Marco scored 12 less than half the points that Sofia scored. If Sofia scored 448 points, how many points did Marco score? | def solve() -> int:
marco = 0.5 * 448 - 12
result = 212
return result
|
David constructs a shelf capable of holding 4 vases, each weighing 10 pounds. He later adds 1 more vase to the shelf. What weight must the shelf hold up? | def solve() -> int:
num_vases = 5
weight_per_vase = 10
total_vase_weight = num_vases * weight_per_vase
shelf_weight = total_vase_weight
result = shelf_weight
return result
|
Student: Lisa is a painter and wants to buy new color paints for her next artwork. She needs 2 liters of red paint, 4 liters of blue paint and 8 liters of yellow paint. How many liters of paint will Lisa need to buy in total? | def solve() -> int:
red_paint = 2
blue_paint = 4
yellow_paint = 8
total_paint = red_paint + blue_paint + yellow_paint
result = total_paint
return result
|
Ben has 24 stickers. He gives 8 stickers to his friend Amy and 4 stickers to his brother David. He then buys 12 more stickers from the store. How many stickers does he have left? | def solve() -> int:
initial_stickers = 24
given_to_amy = 8
given_to_david = 4
bought_from_store = 12
stickers_left = initial_stickers - given_to_amy - given_to_david + bought_from_store
result = stickers_left
return result
|
A restaurant serves 20 customers on the first day. Each day, it serves 3 more customers than the previous day. How many customers will the restaurant serve in 10 days? | def solve() -> int:
customers_first_day = 20
daily_increase = 3
days = 10
total_customers = customers_first_day + daily_increase*(days-1)
result = total_customers
return result
|
Each class has 20 students and each student collects 5 plastic bottles for recycling. How many plastic bottles has the school collected in total? | def solve() -> int:
total_students = 8 * 20
total_bottles = total_students * 5
result = total_bottles
return result
|
A rectangle with width x and length y has a perimeter of 24. If x = 4, what is the value of y? | def solve() -> int:
width = 4
perimeter = 24
length = (perimeter / 2) - width
result = length
return result
|
A train has 12 cars, each with 24 seats. If there are 240 passengers on the train, how many seats are empty? | def solve() -> int:
cars = 12
seats = 24
passengers = 240
total_seats = cars * seats
empty_seats = total_seats - passengers
result = empty_seats
return result
|
8. Heather eats 2500 calories every day except for Sunday when she consumes an extra 500 calories. She burns 2000 calories every day. What is her weekly caloric deficit? | def solve() -> int:
day_calories = [2500,2500,2500,2500,2500,2500,3000]
calories_burned = 2000
extra_calories = 500
total_calories_eaten = sum(day_calories) + extra_calories
weekly_caloric_deficit = calories_burned * 7 - total_calories_eaten
result = weekly_caloric_deficit
return ... |
Holly's daughter is 7 years older than Lori's daughter. If Lori's daughter is 10 years old, how old is Holly's daughter? | def solve() -> int:
age_lori_daughter = 10
age_holly_daughter = age_lori_daughter + 7
result = age_holly_daughter
return result
|
Jacob sells boxes of fresh strawberries to fund a community garden. He buys them at $20 per box and sells them at a 25% higher cost. How much will he raise by selling 50 boxes of strawberries? | def solve() -> int:
cost_per_box = 20
selling_price_percentage = 25
number_of_boxes = 50
selling_price_per_box = cost_per_box + (cost_per_box * selling_price_percentage / 100)
total_amount_raised = selling_price_per_box * number_of_boxes
result = total_amount_raised
retur... |
Mrs. Johnson wanted to buy ingredients for her recipes. She bought 2kg of sugar and 0.5kg of flour. Sugar cost $3/kg while flour cost $2/kg. How much did she spend for the ingredients? | def solve() -> int:
price_sugar = 3
price_flour = 2
quantity_sugar = 2
quantity_flour = 0.5
total_cost_sugar = price_sugar * quantity_sugar
total_cost_flour = price_flour * quantity_flour
total_cost = total_cost_sugar + total_cost_flour
result = total_cost
return resu... |
Taylor is planning a road trip with her friends. She drives for three hours at an average speed of 60 miles per hour, then stops for an hour to have lunch and rest. She resumes driving for four more hours at the same speed, then spends two hours at a motel. What percentage of the total time she spent on the road trip w... | def solve() -> int:
total_time = 3 + 1 + 4 + 2
driving_time = 3 + 4
percentage = round(100 * driving_time / total_time)
result = percentage
return result
|
Jack rents out his apartment on Airbnb, he charges 80 dollars per night and pays 20 dollars for the cleaning and maintenance per night. If Jack rents out his apartment for 15 nights in a month, how much money does he earn in a month? | def solve() -> int:
revenue_per_night = 80
cost_per_night = 20
revenue_per_month = revenue_per_night * 15
cost_per_month = cost_per_night * 15
profit_per_month = revenue_per_month - cost_per_month
result = profit_per_month
return result
|
A car travels 240 miles in 4 hours. What is the speed of the car in miles per hour? | def solve() -> int:
distance = 240
time = 4
speed = distance / time
result = speed
return result
|
A swimming pool can be filled by pipe A in 5 hours and pipe B in 7 hours. How long will it take to fill the pool if both pipes are open? | def solve() -> int:
hours_with_both_pipes = 1 / (1/5 + 1/7)
result = hours_with_both_pipes
return result
|
Ethan has 5 dollar bills and 3 ten-dollar bills in his wallet. If he receives 2 more ten-dollar bills from his grandma, how much money does he have in total? | def solve() -> int:
five_dollar_bills = 5
ten_dollar_bills = 3
total_money_before = (five_dollar_bills * 5) + (ten_dollar_bills * 10)
ten_dollar_bills += 2
total_money_after = (five_dollar_bills * 5) + (ten_dollar_bills * 10)
result = total_money_after
return result
|
A teacher wants to divide her 28 students equally into groups of 4. How many groups will she have and how many students will be in each group? | def solve() -> int:
groups = 28/4
result = int(groups)
remaining = 28%4
return result
|
Olivia wants to walk 15 miles in one day. She walks 2 miles every 30 minutes. How many hours will it take for her to finish her walk? | def solve() -> int:
distance = 15
distance_per_30_minutes = 2
intervals = distance / distance_per_30_minutes
time_in_hours = intervals / 2
result = time_in_hours
return result
|
Jack is trying to decide which ATM to use. If he uses the one at the bank, it will take him 5 minutes to complete his transaction, but if he uses the one at the convenience store, it will only take him 2 minutes. How many minutes will he save if he uses the convenience store ATM for his transaction and back home? | def solve() -> int:
bank_time = 5
store_time = 2
total_time = bank_time * 2
convenience_time = store_time * 2
time_saved = total_time - convenience_time
result = time_saved
return result
|
A bag has 60 candies. If 12 of them are green and the rest are blue, what percentage are blue? | def solve() -> int:
total_candies = 60
green_candies = 12
blue_candies = total_candies - green_candies
percent_blue = (blue_candies / total_candies) * 100
result = percent_blue
return result
|
Student: James and Lily are preparing for their final exams. They have 2 books to read and 4 tutorials to solve. They decide to dedicate 3.5 hours for each book and 1.5 hours for each tutorial. If they plan to study no more than 5 hours each day, how many days should they plan to study total over the next week if they ... | def solve() -> int:
books = 2
tutorials = 4
time_per_book = 3.5
time_per_tutorial = 1.5
max_time_per_day = 5
break_time = 15
snack_time = 10
lunch_time = 45
total_time_per_day = max_time_per_day - (break_time * 4) - (snack_time * 2) - lunch_time
total_time_needed = (books * time_... |
A mechanic charges $40 for an oil change and $75 for a brake job. In one day he performed 3 oil changes and 2 brake jobs. How much did he earn? | def solve() -> int:
oil_change_rate = 40
brake_job_rate = 75
oil_changes_done = 3
brake_jobs_done = 2
total_pay = (oil_change_rate*oil_changes_done) + (brake_job_rate*brake_jobs_done)
result = total_pay
return result
|
Sam has a 24-inch ruler and a 10-centimeter ruler. He uses the 24-inch ruler to measure the length of a table and gets 36 inches. He then uses the 10-centimeter ruler to measure the width of the table and gets 15 centimeters. What is the area of the table in square inches? | def solve() -> int:
width_in_inches = 15 * 0.393701
area = 36 * width_in_inches
result = round(area)
return result
|
James has five times as many blue marbles as red marbles. He also has 50 fewer red marbles than green marbles. If he has 75 blue marbles, how many of his marbles are not red? | def solve() -> int:
red_marbles = 75/5
green_marbles = red_marbles + 50
total_marbles = red_marbles + green_marbles + 75
not_red_marbles = total_marbles - red_marbles
result = not_red_marbles
return result
|
Martha has 30 stickers, each weighing 6 grams. She divides them equally between her 6 classmates, but one of them accidentally tears the stickers in half. How many grams of sticker does each classmate have left? | def solve() -> int:
stickers = 30
weight_per_sticker = 6
classmates = 6
total_weight = stickers * weight_per_sticker
weight_per_classmate = total_weight / classmates
weight_per_classmate_after_tearing = weight_per_classmate / 2
result = weight_per_classmate_after_tearing
r... |
Student: There are 540 coins in the jar. Madison decided to split it by 5 equal piles. How many coins will each pile have? | def solve() -> int:
coins = 540
piles = 5
coins_in_each_pile = coins // piles
result = coins_in_each_pile
return result
|
Adam rode his bike for an hour at an average speed of 10 kilometers/hour, how many kilometers did Adam ride in total? | def solve() -> int:
distance_in_km = 0
distance_in_km += 10 * 1
result = distance_in_km
return result
|
In a sports meet, there are 200 participants who need to run a race. If the race takes 2 minutes to complete, how many hours will it take to complete all the races assuming each hour lasts 40 minutes? | def solve() -> int:
num_participants = 200
race_time = 2
total_time = num_participants * race_time
num_hours = total_time / 60 / 40
result = num_hours
return result
|
A group of friends decided to split a bill of $240 equally. If there are 6 friends in the group, how much money does each person need to pay? | def solve() -> int:
bill = 240
num_friends = 6
amount_per_person = bill / num_friends
result = amount_per_person
return result
|
Jack is counting the number of trees in his garden for his biology project. On the first day, he counted 10 trees. On the second day, he counted 6 trees less than the first day. The average number of trees present for the first two days is usually 19. What is the difference between this year's count and the average cou... | def solve() -> int:
day1 = 10
day2 = day1 - 6
total = day1 + day2
average = total / 2
difference = total - (2 * average)
result = difference
return result
|
A bag of popcorn has 14 salty kernels, 5 more sweet kernels than salty kernels, and 8 fewer spicy kernels than sweet kernels. How many kernels are there in the bag? | def solve() -> int:
salty = 14
sweet = salty + 5
spicy = sweet - 8
total = salty + sweet + spicy
result = total
return result
|
At a theater, there are 3 rooms, with each room having 50 seats. If each room was upgraded to accommodate 20 more seats, how many people could watch a movie in 5 such theaters combined? | def solve() -> int:
rooms = 3
seats_per_room = 50
upgrade = 20
theaters = 5
total_seats = (seats_per_room + upgrade) * rooms
total_people = total_seats * theaters
result = total_people
return result
|
A bakery sells cakes for $25 each. If they offer a 20% discount for buying more than 3 cakes, how much will it cost to buy 5 cakes? | def solve() -> int:
cake_cost = 25
num_cakes = 5
discount_threshold = 3
discount_rate = 0.2
if num_cakes > discount_threshold:
discount_amount = num_cakes * cake_cost * discount_rate
else:
discount_amount = 0
total_cost = num_cakes * cake_cost - discount_amount
result = total... |
10. A runner trains for 20 minutes every morning, and can cover a distance of 350 meters in that amount of time. How many kilometers does the runner cover in a month if they run every morning? | def solve() -> int:
time_period = 20
dist_in_time_period = 350
time_in_hr = time_period / 60
dist_in_hr = dist_in_time_period / 60
days_in_month = 30
dist_in_month = (dist_in_hr * time_in_hr * days_in_month) / 1000
result = dist_in_month
return result
|
Student: A pizza has 8 slices. If a group of 4 people have 2 pizzas, how many slices would each person get? | def solve() -> int:
pizza_slices = 8
people = 4
pizzas = 2
total_slices = pizza_slices * pizzas
slices_per_person = total_slices / people
result = slices_per_person
return result
|
Maria is going on a hike with her friends and wants to estimate how long it will take them to reach the summit. She knows that they will drive for 45 minutes to the trailhead, hike at an average speed of 3 km/h for 12 km, rest for half an hour at a scenic spot, and then hike the last 2 km at a slower speed of 2 km/h. I... | def solve() -> int:
drive_time = 45
hike_speed = 3
hike_distance = 12
rest_time = 30
slow_speed = 2
slow_distance = 2
trip_time = 6
trip_time = trip_time * 60
hike_time = hike_distance / hike_speed * 60
slow_time = slow_distance / slow_speed * 60
total_hik... |
Mark has 2 cats and 3 dogs. Each cat can climb 8 trees and each dog can climb 5 trees. How many trees can all of Mark's pets climb combined? | def solve() -> int:
total_cat_trees = 2 * 8
total_dog_trees = 3 * 5
total_pet_trees = total_cat_trees + total_dog_trees
result = total_pet_trees
return result
|
Student: There are 12 basketballs, which were divided equally among 4 teams. How many basketballs does each team get? | def solve() -> int:
num_basketballs = 12
num_teams = 4
num_basketballs_per_team = num_basketballs // num_teams
result = num_basketballs_per_team
return result
|
If a car travels 36km in 1 hour and 30 minutes, what is the speed of the car in km per hour? | def solve() -> int:
distance = 36
time = 1.5
speed = distance/time
result = speed
return result
|
A baker made 1,800 cookies and sold them for $0.75 each. He spent $900 on ingredients and $300 on packaging. How much profit did he make? | def solve() -> int:
result = 1350 - 1200
return result
|
A pet store sells 8 bags of pet food per hour on weekdays and a total of 80 bags over the weekend. If the pet store is open for 6 hours a day, 5 days a week, how many bags of pet food will be sold in a week? | def solve() -> int:
bags_per_hour = 8
weekend_bags = 80
weekday_hours = 6
weekdays = 5
weekday_bags = bags_per_hour * weekday_hours * weekdays
total_bags = weekday_bags + weekend_bags
result = total_bags
return result
|
Student: A cell phone plan costs $40 per month for unlimited talk and text, and an additional $5 for each GB of data. If a customer uses 3.5 GB of data in a month, how much will their bill be? | def solve() -> int:
monthly_cost = 40
data_cost = 5
data_used = 3.5
total_cost = monthly_cost + (data_cost * data_used)
result = total_cost
return result
|
Sarah collected two buckets of seashells on her beach trip. If five shells were broken and she kept 55, how many shells did she originally collect? | def solve() -> int:
buckets = 2
total_shells = buckets * 100
broken_shells = 5
kept_shells = 55
original_shells = total_shells - broken_shells - kept_shells
result = original_shells
return result
|
- In the town of Beta, there are 36 soccer players. Half of the soccer players are girls, and two-thirds of the girls are left-footed. How many right-footed soccer players are there in the town? | def solve() -> int:
girls = 36 / 2
boys = 36 - girls
left_girls = girls * 2 / 3
right_girls = girls - left_girls
right_boys = boys
result = right_girls + right_boys
return result
|
If the duration of a movie is 2 hours and 30 minutes, how many minutes long is the movie? | def solve() -> int:
hours = 2
minutes = 30
total_minutes = (hours * 60) + minutes
result = total_minutes
return result
|
Jenny invested $6000 in a stock that increased by 15% in the first year and decreased by 10% in the second year. How much money does she have now? | def solve() -> int:
initial_investment = 6000
increase = initial_investment * 0.15
year1_earnings = initial_investment + increase
decrease = year1_earnings * 0.1
year2_earnings = year1_earnings - decrease
final_amount = year2_earnings
result = final_amount
return result
|
Ryan is measuring ingredients for a recipe. For every cup of sugar he uses, he accidentally spills 1/4 cup on the ground. If he needs 3 cups of sugar, how much should he measure out? | def solve() -> int:
sugar_needed = 3
spilled_sugar_per_cup = 1/4
total_sugar_needed = sugar_needed / (1 - spilled_sugar_per_cup)
result = round(total_sugar_needed, 2)
return result
|
There are 12 chairs in a classroom. If two chairs are removed, how many chairs are in the classroom? | def solve() -> int:
total_chairs = 12
removed_chairs = 2
result = total_chairs - removed_chairs
return result
|
A rectangle has a length of 15 centimeters and a width of 8 centimeters. What is its area? | def solve() -> int:
length = 15
width = 8
area = length * width
result = area
return result
|
am is 7 years old. His brother Max is 4 years older. What will be the product of their ages 5 years later? | def solve() -> int:
max_age = 7 + 4
sam_age_later = 7 + 5
max_age_later = max_age + 5
product = sam_age_later * max_age_later
result = product
return result
|
If Olivia has 1/3 as many tennis balls as Colin, and Colin has 45 tennis balls, how many tennis balls do they have together? | def solve() -> int:
colin = 45
olivia = colin / 3
total = colin + olivia
result = total
return result
|
If 5 pencils cost $2.50, how much does 3 pencils cost? | def solve() -> int:
one_pencil_cost = 2.50 / 5
three_pencil_cost = one_pencil_cost * 3
result = three_pencil_cost
return result
|
Tara wants to buy a new phone that costs $800. She also needs to buy a screen protector for $50. The phone store is offering a 20% discount on phones and a 30% discount on screen protectors for the next four hours. How much can she save if she goes to the store during this time period? | def solve() -> int:
phone_cost = 800
screen_protector_cost = 50
phone_discount = 0.2
screen_protector_discount = 0.3
phone_discount_amount = phone_cost * phone_discount
screen_protector_discount_amount = screen_protector_cost * screen_protector_discount
total_discount = phone_... |
Kevin ate twice as many cookies as Lara did. Lara ate three-fourths as many cookies as Tina. If Tina ate 12 cookies, how many did Kevin eat? | def solve() -> int:
lara = 12 * 3 / 4
kevin = lara * 2
result = kevin
return result
|
40% of the teachers in a school are male. 25% of the male teachers wear glasses. If there are 200 teachers in the school, how many male teachers wear glasses? | def solve() -> int:
total_teachers = 200
male_percent = 0.4
glasses_percent = 0.25
male_teachers = total_teachers * male_percent
male_glasses = male_teachers * glasses_percent
result = int(male_glasses)
return result
|
John bought a bike for $500 and sold it a year later for a 12% profit, after paying a 4% commission to the broker from the original price. How much did he sell the bike for? | def solve() -> int:
original_price = 500
commission_rate = 0.04
profit_rate = 0.12
commission = original_price * commission_rate
selling_price = original_price + commission
profit = selling_price * profit_rate
final_price = selling_price + profit
result = final_price
return... |
A store has 500 apples and sells 25% of them. If 1 customer can buy only 10 apples, how many customers need to buy all the remaining apples? | def solve() -> int:
apples_sold = 500 * 0.25
apples_remaining = 500 - apples_sold
customers = apples_remaining // 10
result = customers
return result
|
Phil is a mechanic. He can fix 5 cars in 7 days. If he hires 3 more mechanics, how many cars can they fix in 5 days? | def solve() -> int:
cars_fixed_per_mechanic_per_day = 5 / 7
total_mechanics = 1 + 3
total_cars_fixed_per_day = cars_fixed_per_mechanic_per_day * total_mechanics
cars_fixed_in_5_days = total_cars_fixed_per_day * 5
result = cars_fixed_in_5_days
return result
|
A bag contains 10 red balls and 5 blue balls. A ball is drawn at random and then another ball is drawn at random from the remaining balls in the bag. What is the probability that both balls are blue? | def solve() -> int:
total_balls = 15
total_blue = 5
first_blue = total_blue / total_balls
second_blue = (total_blue - 1) / (total_balls - 1)
total_probability = first_blue * second_blue
result = total_probability
return result
|
Tom has a total of 98 stickers in 7 different albums. If he wants to distribute them equally among all the albums, how many stickers will be left undone in each album? | def solve() -> int:
stickers = 98
albums = 7
stickers_per_album = stickers // albums
leftover_stickers = stickers % albums
result = (stickers_per_album, leftover_stickers)
return result
|
5. Carol invested $40000 in a mutual fund 5 years ago which earns 8% return annually. How much money has she earned in total from the mutual fund? | def solve() -> int:
initial_investment = 40000
interest_rate = 0.08
yearly_return = initial_investment * interest_rate
total_return = yearly_return * 5
result = total_return
return result
|
-The variable names, values, units, and contexts of the new questions should be **different** from the original one, but the structure and logic of the questions should be **similar**. Some possible new questions and programs are: Rosa goes on a road trip from San Francisco to Los Angeles. She drives her car for 6 hour... | def solve() -> int:
driving_time_1 = 6
sleeping_time = 4
driving_time_2 = 8
trip_time = driving_time_1 + sleeping_time + driving_time_2
result = trip_time
return result
|
A basket has 100 apples, 50 oranges, and 75 bananas. If John ate 10 apples, 5 oranges, and 3 bananas, calculate the percentage of fruits John ate. | def solve() -> int:
total_fruits = 100 + 50 + 75
fruits_eaten = 10 + 5 + 3
percentage_eaten = (fruits_eaten/total_fruits)*100
result = percentage_eaten
return result
|
Lisa prepares lunch for her family every day. She makes 4 sandwiches for each of her 4 children and 6 sandwiches for her husband. Then, she makes 2 sandwiches for herself. How many sandwiches does Lisa make in a year? | def solve() -> int:
num_children = 4
sandwiches_per_child = 4
husband_sandwiches = 6
lisa_sandwiches = 2
sandwiches_per_day = num_children * sandwiches_per_child + husband_sandwiches + lisa_sandwiches
sandwiches_per_year = sandwiches_per_day * 365
result = sandw... |
A room has dimensions 9 feet by 12 feet by 8 feet. What is the volume of the room in cubic meters (round off to 2 decimal places)? (1 foot is equivalent to 0.3048 meters). | def solve() -> int:
length = 9 * 0.3048
width = 12 * 0.3048
height = 8 * 0.3048
volume = round(length * width * height, 2)
result = volume
return result
|
At his pizza place, Leo sells cheese pizza and pepperoni pizza slices. He cuts the cheese pizza into 6 slices. He cuts the pepperoni pizza into 8 slices. On Friday, 54 customers ordered cheese pizza slices and 64 customers ordered pepperoni pizza slices. How many pizzas did Leo sell on Friday? | def solve() -> int:
cheese_slices = 6
pepperoni_slices = 8
cheese_orders = 54
pepperoni_orders = 64
cheese_pizzas = cheese_orders // cheese_slices
pepperoni_pizzas = pepperoni_orders // pepperoni_slices
total_pizzas = cheese_pizzas + pepperoni_pizzas
result = total_pizzas
return res... |
At the gym, Jake did 5 push-ups and 10 squats. If he also did 3 burpees, how many exercises did he do in total? | def solve() -> int:
push_ups = 5
squats = 10
burpees = 3
total_exercises = push_ups + squats + burpees
result = total_exercises
return result
|
She cut the cake into 12 equal slices and gave 4 slices to her friend. She then ate 2 slices herself and shared the rest with her family. If each slice of cake had 200 calories, how many calories did Anna and her family consume in total? | def solve() -> int:
slices_left = 12 - 4 - 2
calories_per_slice = 200
total_calories = slices_left * calories_per_slice
result = total_calories
return result
|
There are 5 friends going on a road trip and they need to rent a car. The rental is $200 for the three-day trip. How much does each person have to contribute for the rental? | def solve() -> int:
total_friends = 5
rental_cost = 200
days_rented = 3
total_cost = rental_cost * days_rented
cost_per_person = total_cost / total_friends
result = cost_per_person
return result
|
A recipe calls for 2 cups of flour to make 12 cookies. If someone wants to make 36 cookies, how much flour do they need? | def solve() -> int:
cups_of_flour = 2
cookies_made = 12
cookies_needed = 36
flour_needed = (cups_of_flour/cookies_made) * cookies_needed
result = flour_needed
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.