question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
arah works at a grocery store. She makes $10.25 an hour. On Monday, she worked 8 hours, but on Wednesday, she had to leave early, so she only worked 5 hours. How much money did she make in those two days? | def solve() -> int:
hours_monday = 8
hours_wednesday = 5
wage = 10.25
total_money = (hours_monday + hours_wednesday) * wage
result = total_money
return result
|
If Melissa has 24 lbs of oranges, how many lbs does she have left if she gives away 8 lbs? | def solve() -> int:
oranges = 24
lbs_give_away = 8
oranges_left = oranges - lbs_give_away
result = oranges_left
return result
|
A school bus carries 50 students. If 20% of the students are boys, how many girls are there on the bus? | def solve() -> int:
total_students = 50
boys_percent = 20
boys_count = total_students * boys_percent / 100
girls_count = total_students - boys_count
result = girls_count
return result
|
The sum of two numbers is 84. If the numbers are in the ratio of 3:5, what is the smaller number? | def solve() -> int:
total_sum = 84
small_num_ratio = 3
large_num_ratio = 5
total_ratio = small_num_ratio + large_num_ratio
small_num = (small_num_ratio/total_ratio)*total_sum
result = small_num
return result
|
John has three times as many marbles as Sean. Together, John and Sean have 80 marbles. How many marbles does each of them have? | def solve() -> int:
total_marbles = 80
ratio_john_sean = 3
number_sean = total_marbles / (ratio_john_sean + 1.0)
number_john = total_marbles - number_sean
result = (number_john, number_sean)
return result
|
A recipe for a cake requires 3 eggs, 2 cups of sugar, 2 cups of flour, and 1 cup of milk. If Sarah wants to make 3 cakes, how much of each ingredient will she need? | def solve() -> int:
eggs_needed = 3 * 3
sugar_needed = 2 * 3
flour_needed = 2 * 3
milk_needed = 1 * 3
result = (eggs_needed, sugar_needed, flour_needed, milk_needed)
return result
|
ix friends went to the movies. The tickets cost $11 each and they each bought popcorn for $6. How much did they spend in total? | def solve() -> int:
numFriends = 6
ticketPrice = 11
popcornPrice = 6
costTickets = numFriends * ticketPrice
costPopcorn = numFriends * popcornPrice
totalCost = costTickets + costPopcorn
result = totalCost
return result
|
Nate started a popcorn business that cost $0.35 to make each bag of popcorn. The first 3 bags burned, but he ended up making 7 more. Nate ate 2 bags and then made another 12, eating 4 throughout the day. When Nate sold each unopened bag for $0.75 each, what was his net profit? | def solve() -> int:
cost_per_bag = 0.35
num_bags_burned = 3
num_bags_made = 7
num_bags_eaten = 2
num_bags_made_additional = 12
num_bags_eaten_additional = 4
selling_price_per_bag = 0.75
total_cost = (num_bags_made + num_bags_made_additional) * cost_per_bag
total_bags = num_bags_... |
A car engine produces a torque of 10 Nm at 2500 revolutions per minute. What is the power output? | def solve() -> int:
torque = 10
revolutions_per_minute = 2500
speed_in_radians_per_second = revolutions_per_minute * (2 * 3.14/60)
power_output = torque * speed_in_radians_per_second
result = power_output
return result
|
In a restaurant, 3 friends share a $60 bill. If each friend contributed an equal amount, how much did each one pay? | def solve() -> int:
bill = 60
friends = 3
each_paid = bill / friends
result = each_paid
return result
|
Samantha bought a bag of candy for $5, a toy for $10, and a book for $7. If she paid with a $20 bill, how much change will she receive? | def solve() -> int:
candy_price = 5
toy_price = 10
book_price = 7
total_price = candy_price + toy_price + book_price
paid_amount = 20
change = paid_amount - total_price
result = change
return result
|
If a pizza is cut into 10 slices and you eat 3 slices, how many slices are left? | def solve() -> int:
total_slices = 10
eaten_slices = 3
left_slices = total_slices - eaten_slices
result = left_slices
return result
|
Mark's backyard consists of a square garden. He noticed that the length of each side of the garden was three times the width. If the garden's total area is 324 square feet, what is the length of the garden's perimeter? | def solve() -> int:
width = 24
area = 324
length = area / width
result = 4 * length
return result
|
The ratio of boys to girls in a kindergarten class is 2:3. If there are 10 more girls than boys in the class, how many students are in the class? | def solve() -> int:
b = 2
g = 3
x = 10/(g - b)
total = b + g + x
result = total
return result
|
Anna bought a sweater for $30, a pair of jeans for $50, and a hat for $10. She got a 25% discount on the sweater and the jeans, but not on the hat. How much money did Anna save from the discount? | def solve() -> int:
original_sweater = 30 / 0.75
original_jeans = 50 / 0.75
discount = (original_sweater - 30) + (original_jeans - 50)
result = discount
return result
|
Anna had a lemonade stand and sold each cup for $0.5. She made 80 cups of lemonade and spent $12 on the ingredients and $8 on the cups. She sold 60 cups of lemonade and gave away 10 cups for free. How much profit did Anna make from her lemonade stand? | def solve() -> int:
revenue = 0
cost = 12 + 8
profit = 0
revenue = revenue + 0.5 * 60
profit = revenue - cost
result = profit
return result
|
Student: Kevin bought 7 bowls for $6 each and 3 plates for $4 each. How much did Kevin spend in total? | def solve() -> int:
bowls = 7
plates = 3
bowl_price = 6
plate_price = 4
bowl_cost = bowls * bowl_price
plate_cost = plates * plate_price
total_cost = bowl_cost + plate_cost
result = total_cost
return result
|
Hannah has a jar of 356 marbles. If she gives away 3/4 of her marbles to her sister, how many marbles does she have left in her jar? | def solve() -> int:
total_marbles = 356
given_away = total_marbles * 3/4
remaining = total_marbles - given_away
result = remaining
return result
|
Student: A person drives 20 miles to work and back every day. If gas costs $3.00 per gallon and their car gets 25 miles per gallon, how much do they spend on gas in a month? | def solve() -> int:
miles_per_day = 20
cost_per_gallon = 3.00
miles_per_gallon = 25
miles_per_month = miles_per_day * 30
gallons_per_month = miles_per_month / miles_per_gallon
cost_per_month = cost_per_gallon * gallons_per_month
result = cost_per_month
return result
|
In a swimming contest, Lily swam a total of 200 meters and Sophie swam 50 meters more than Lily. In the next round, Sophie swam twice as many meters as Lily's first round but Lily swam 10 less than Sophie. How many more meters in total did Sophie swim than Lily? | def solve() -> int:
lily_total = 200
sophie_total = lily_total + 50
lily_first_round = lily_total / 3
sophie_first_round = lily_first_round + 10
sophie_second_round = lily_first_round * 2
lily_total_meters = lily_first_round + sophie_second_round
sophie_total_meters = sophie_first_round... |
A family of six went to a pizza parlor and bought 3 extra large pizzas that cost $20 each, 1 order of chicken wings that cost $12, and 6 bottles of soda that cost $3 each. How much will each of them pay if they split the bill equally? | def solve() -> int:
num_pizzas = 3
pizza_cost = 20
num_wings = 1
wings_cost = 12
num_sodas = 6
soda_cost = 3
total_cost = (num_pizzas * pizza_cost) + (num_wings * wings_cost) + (num_sodas * soda_cost)
num_people = 6
cost_per_person = total_cost / num_people
result = cos... |
A gym owner charges $50 per month for each member. If the gym has 400 members for a year, how much money does the gym owner earn in a year? A cow eats up to 25 pounds of hay per day. If Sophie has a hay bale that weighs 75 pounds, how many bales does she need to buy to feed her cow for 3 weeks? | def solve() -> int:
num_members = 400
cost_per_month = 50
total_earnings = num_members * cost_per_month * 12
pounds_per_day = 25
pounds_per_week = pounds_per_day * 7
pounds_per_3_weeks = pounds_per_week * 3
hay_bale_weight = 75
num_bales_needed = pounds_per_3_wee... |
Possible questions and programs: Salma has 12 marbles. She gives 2 marbles to each of her 4 friends and keeps the rest. How many marbles does Salma have now? | def solve() -> int:
marbles = 12
given = 2 * 4
kept = marbles - given
result = kept
return result
|
Isla ran 5 miles in 40 minutes. What was her average speed (in miles per hour)? | def solve() -> int:
time_in_hours = 40/60
average_speed = 5/time_in_hours
result = round(average_speed,2)
return result
|
A restaurant sells burgers for $8 and fries for $5. If Jane bought 2 burgers and 3 fries, and there is a 10% sales tax added, how much did she pay in total? | def solve() -> int:
subtotal = 2*8 + 3*5
sales_tax = subtotal*0.1
total_cost = subtotal + sales_tax
result = total_cost
return result
|
A pizza has 8 slices. If you eat 2 slices every day, how many days will it take to finish the whole pizza? | def solve() -> int:
slices_per_pizza = 8
slices_per_day = 2
days = slices_per_pizza // slices_per_day + (slices_per_pizza % slices_per_day > 0)
result = days
return result
|
In Frank's school, there were 100 students, 30 teachers, and 5 staff. Mary bought one-fifth of the people and recruited them for her charity organization. Cameron then gifted Frank an additional 10 volunteers. If exactly three-fifths of the people in the school are girls, how many girls are there in the school? | def solve() -> int:
total_people = 100 + 30 + 5
mary_people = total_people / 5
recruited_people = mary_people
total_people += 10
girls = total_people * 3 / 5
result = girls - recruited_people
return result
|
Jack had to solve a math problem that would take 3 hours to complete. If he spent 45 minutes eating lunch and took 2 breaks of 5 minutes each, how long did it take him to finish solving the math problem? | def solve() -> int:
total_time = 3 * 60
lunch_break = 45
other_breaks = 2 * 5
time_spent_solving = total_time - lunch_break - other_breaks
result = time_spent_solving
return result
|
On Monday, Rachel baked 48 cupcakes. She baked 3 times as many on Tuesday. On Wednesday, she baked 17 cupcakes. How many more cupcakes did she bake on Tuesday than on Wednesday? | def solve() -> int:
Monday = 48
Tuesday = Monday*3
Wednesday = 17
result = Tuesday - Wednesday
return result
|
2. If it took 4 machines 5 hours to cut 85 trees at the saw-mill, how long would it take the same 4 machines to cut 340 trees? | def solve() -> int:
trees_cut = 85
machines = 4
hours = 5
trees_to_cut = 340
result = (trees_to_cut / trees_cut) * hours
return result
|
A recipe calls for 3/4 cup of sugar to make 24 cookies. If you want to make 36 cookies, how much sugar is needed? | def solve() -> int:
sugar_per_cookie = 3/4/24
cookies = 36
total_sugar = sugar_per_cookie*cookies
result = total_sugar
return result
|
A shirt costs $15. The cost of a pair of jeans is 60% of the cost of the shirt and a pair of shoes costs 50% of the cost of the jeans. A shopper bought 4 shirts, 2 pairs of jeans, and 3 pairs of shoes. How much did they spend? | def solve() -> int:
shirt = 15
jeans = 0.6 * shirt
shoes = 0.5 * jeans
total = 4 * shirt + 2 * jeans + 3 * shoes
result = total
return result
|
A blender blade rotates 7 times every 20 seconds. How many rotations does it make in 3 hours? | def solve() -> int:
rotations_per_minute = 7 / 20
rotations_per_hour = rotations_per_minute * 60
rotations_in_3_hours = rotations_per_hour * 3
result = rotations_in_3_hours
return result
|
The White's picked some apples from a farm. Ruby picked 4 more apples than Sam picked. Tim picked 5 apples less than Sam. If Tim picked 14 apples, how many more apples did Ruby pick than Tim? | def solve() -> int:
tim = 14
sam = tim + 5
ruby = sam + 4
result = ruby - tim
return result
|
Andrew was working out with his brother George when they heard a knock on the door. It was Benjamin and 2 of his colleagues come to discuss. If there were also 15 people in the study room, how many people are in the house? | def solve() -> int:
brother = 2
colleagues = 2
study_room = 15
house = brother + colleagues + study_room
result = house
return result
|
David earns $15 per hour and gets a 10% bonus for working more than 40 hours a week. How much does he earn in a week if he works 45 hours? | def solve() -> int:
hourly_rate = 15
bonus_rate = 0.1
regular_hours = 40
extra_hours = 5
regular_earnings = hourly_rate * regular_hours
bonus_earnings = hourly_rate * extra_hours * (1 + bonus_rate)
total_earnings = regular_earnings + bonus_earnings
result = total_earnings
... |
Ella is collecting stamps. She has 6 albums, each with 12 pages. Each page can fit 9 stamps. She already has 405 stamps in her albums. How many more stamps does she need to buy to fill all her albums? | def solve() -> int:
albums = 6
pages = 12
stamps = 9
current = 405
capacity = albums * pages * stamps
diff = capacity - current
result = diff
return result
|
A truck traveled a total of 1000 miles in one week, it ran on 20 miles per gallon and gasoline cost $3.99 per gallon. How much money did the truck spend on gasoline? | def solve() -> int:
total_miles = 1000
mpg = 20
price_per_gallon = 3.99
total_gallons = total_miles / mpg
total_cost = total_gallons * price_per_gallon
result = total_cost
return result
|
A car's gas tank can hold 12 gallons and gets 24 miles per gallon. How many miles can the car travel on a full tank of gas? | def solve() -> int:
tank_size = 12
mpg = 24
miles_on_full_tank = tank_size * mpg
result = miles_on_full_tank
return result
|
A driver takes a trip from point A to point B. He travels 240 km in 4 hours. What is the average speed of the trip? | def solve() -> int:
distance = 240
time = 4
answer = distance / time
result = 60
return result
|
David walks a distance of 15 miles in four hours. Then David cycles another 60 miles in 6 hours. What is David's average speed? | def solve() -> int:
distance1 = 15
time1 = 4
distance2 = 60
time2 = 6
total_distance = distance1 + distance2
total_time = time1 + time2
average_speed = total_distance / total_time
result = average_speed
return result
|
A person deposits $3000 in a savings account at the rate of 5% per annum for 2 years. How much interest will he get in total? | def solve() -> int:
principal = 3000
interest_rate = 0.05
years = 2
interest = principal * interest_rate * years
result = interest
return result
|
Anna is on a hike and is planning to walk 9 kilometers. She has already walked 25% of the total distance. How many more kilometers does she need to walk? | def solve() -> int:
fraction_walked = 0.25
total_distance = 9
distance_left = total_distance - (total_distance * fraction_walked)
result = 6.75
return result
|
Alice is making a necklace with beads. She has 120 blue beads, 90 red beads, and 60 yellow beads. She wants to arrange the beads in a pattern that repeats every 12 beads. The pattern starts with 3 blue beads, followed by 2 red beads, followed by 3 yellow beads, followed by 2 blue beads, followed by 1 red bead, and fina... | def solve() -> int:
blue = 3 + 2
red = 2 + 1
yellow = 3 + 1
times_blue = 120 // blue
times_red = 90 // red
times_yellow = 60 // yellow
times = min(times_blue, times_red, times_yellow)
result = times
return result
|
Mark had to go to the dentist for a filling. The filling cost $500 and Mark's insurance covered 50% of the total cost. If the dentist charged a $100 consultation fee, how much did Mark pay out of pocket? | def solve() -> int:
filling_cost = 500
consultation_fee = 100
total_cost = filling_cost + consultation_fee
insurance_coverage = 0.5
out_of_pocket_cost = total_cost * (1-insurance_coverage)
result = out_of_pocket_cost
return result
|
Peter has been running for exercise. In the first day, he ran for 1 mile. In the second day, he ran twice as much as he did the first day. In the third day, he ran 4 times as much as he did the second day. How many miles has Peter run in total? | def solve() -> int:
first_day = 1
second_day = 2 * first_day
third_day = 4 * second_day
total_miles = first_day + second_day + third_day
result = total_miles
return result
|
A jet travels 720 miles in 8 hours. How far would it travel in 10 hours? | def solve() -> int:
distance = 720
time = 8
rate = distance / time
result = int(rate * 10)
return result
|
David rides his bike at a certain pace and covers 15 miles in 80 minutes. If he increased his speed by 20%, how long would he take to cover 27 miles? | def solve() -> int:
distance_covered = 15
time = 80
new_distance = 27
new_speed = 1.2
new_time = (new_distance / (distance_covered / time)) / new_speed
result = new_time
return result
|
Lily studies for her final exams for 50 minutes each day on weekdays. If she misses one day of studying due to illness, how many hours did she study for the whole week? | def solve() -> int:
study_time_per_day = 50
number_of_weekdays = 5
study_time_per_week = study_time_per_day * number_of_weekdays
study_time_in_hours = study_time_per_week / 60
result = study_time_in_hours
return result
|
A farmer has 1200 square meters of land to plant carrots and potatoes. If he decides to use 3/5 of the land for potatoes, how many square meters are left for carrots? | def solve() -> int:
total_lands = 1200
potato_land = 3/5 * total_lands
carrot_land = total_lands - potato_land
result = carrot_land
return result
|
Every Tuesday and Thursday, Olivia swims 2 kilometers in the lake to train for a triathlon. On the other days, she bikes 15 kilometers on the hilly roads. How many kilometers will she have traveled in a week? | def solve() -> int:
swim_distance = 2
bike_distance = 15
week_distance = (swim_distance * 2) + (bike_distance * 5)
result = week_distance
return result
|
Rachel starts with $500 and invests $100 in stocks where she makes a 10% return. She then decides to invest again, but unfortunately makes the wrong choice and loses it all, owing her roommate $75. How much money did Rachel lose in total? | def solve() -> int:
start_amount = 500
investment_amount = 100
return_rate = 0.1
loss_amount = 75
investment_return = investment_amount * return_rate
new_amount = start_amount + investment_amount + investment_return
final_amount = new_amount - loss_amount
result = final_am... |
John always tips 7%. If amazing tippers tip at least 40%, how many more cents more than usual would John have to tip on a bill of $95 to become an amazing tipper? | def solve() -> int:
bill = 95
tip_percentage = 0.07
amazing_tip_percentage = 0.40
usual_tip = bill * tip_percentage
amazing_tip = bill * amazing_tip_percentage
extra_tip = amazing_tip - usual_tip
result = extra_tip * 100
return result
|
In a basket of tomatoes, there are 560 tomatoes. If three-fifths of the basket is 16 baskets and one basket has 35 tomatoes, how many tomatoes are in one cherry tomato? | def solve() -> int:
total_tomatoes = 560
num_baskets = 16
tomatoes_per_basket = 35
total_baskets = num_baskets / (3/5)
total_tomatoes_per_basket = tomatoes_per_basket * total_baskets
num_cherry_tomatoes = total_tomatoes - total_tomatoes_per_basket
result = num_c... |
A recipe calls for 1/4 cup of sugar, but Mary only has a 1/3 cup measuring cup. How many times will Mary need to fill the measuring cup to get the correct amount of sugar? | def solve() -> int:
needed_sugar = 1/4
measuring_cup = 1/3
fills_needed = needed_sugar / measuring_cup
result = f"Mary needs to fill the measuring cup {fills_needed} times to get the right amount of sugar."
return result
|
Student: Tina wants to take her 4 friends on an amusement park ride. The ride costs $7 per person. How much money will Tina need to spend on tickets for herself and her friends? | def solve() -> int:
tina = 1
friends = 4
cost = 7
total_people = tina + friends
total_cost = total_people * cost
result = total_cost
return result
|
Sarah has 45 pencils. She divides them equally among 9 friends. How many pencils does each friend receive? | def solve() -> int:
pencils = 45
friends = 9
each_friend = pencils/friends
result = each_friend
return result
|
A gardening square has the same width and length of 20 feet. How many flowers can a gardener plant in the gardening if the minimum distance between any flowers should be 2 feet each side? | def solve() -> int:
length = 20
width = 20
flower_width = 2
available_length = length - flower_width
available_width = width - flower_width
num_flowers = (available_length//flower_width) * (available_width//flower_width)
result = num_flowers
return result
|
A pizza restaurant has 3 chefs that can each make 4 pizzas per hour. If the restaurant is open for 8 hours, how many pizzas can they make in one day? | def solve() -> int:
pizzas_per_chef_per_hour = 4
number_of_chefs = 3
hours_open_in_day = 8
total_pizzas = pizzas_per_chef_per_hour * number_of_chefs * hours_open_in_day
result = total_pizzas
return result
|
Michael can type 2000 words in 30 minutes. He types 20 words in the first 10 seconds. He maintains the same speed for the rest of the typing process. Laura is 3 words/minute faster and she can type the first 100 words in 1 minute. How long will it take Laura to type the 2000 words? | def solve() -> int:
michael_words_per_minute = 2000 / 30
michael_words_per_second = michael_words_per_minute / 60
michael_words_in_10_seconds = 20
michael_words_in_rest_of_time = 2000 - michael_words_in_10_seconds
laura_words_per_minute = michael_words_per_minute + 3
laura_words_per_second ... |
A rectangle is 2 times as long as it is wide. If the perimeter is 30, what is the length of the rectangle? | def solve() -> int:
perimeter = 30
w = perimeter//8
l = 2*w
result = l
return result
|
David has 20 marbles and he loses 4 of them. He then finds 6 more marbles. What fraction of his original marbles does he have now? | def solve() -> int:
marbles_now = 20 - 4 + 6
fraction = marbles_now / 20
result = fraction
return result
|
Student: A math quiz has 20 multiple choice questions. Each question has 4 options to choose from. How many possible combinations of answers are there? | def solve() -> int:
num_questions = 20
num_options = 4
result = num_options ** num_questions
return result
|
Olivia studies for 5 hours every day. During her study time, she spends 1/7 of her time reviewing notes and the rest doing practice problems. If she spends half as much time doing practice problems as she does reading, how much time in minutes does she spend reading? | def solve() -> int:
hours_studying_per_day = 5
reviewing_notes_ratio = 1/7
practice_problems_ratio = 1 - reviewing_notes_ratio
practice_problems_time = practice_problems_ratio * hours_studying_per_day * 60 / 2
reading_time = hours_studying_per_day * 60 * reviewing_notes_ratio
result = readi... |
40 less than 15 times Lisa's age is 60 more than 8 times Tom's age. If Tom is currently 30 years old, how old is Lisa now? | def solve() -> int:
lisa_age = (40 + 8 * 30 + 60) / 15
result = lisa_age
return result
|
In a library, there are 90 books. The number of fiction books is double the number of non-fiction books. The rest of the books are textbooks. If there are 15 textbooks, how many non-fiction books are in the library? | def solve() -> int:
total_books = 90
textbooks = 15
fiction = total_books - textbooks
fiction = fiction / 3
non_fiction = fiction
result = non_fiction
return result
|
Rachel is making a protein shake and needs 2 pounds of whey protein powder. She knows that each scoop of powder weighs 1/4 of a pound. How many dozen scoops should she use? | def solve() -> int:
scoop_weight = 1/4
protein_weight = 2
scoops_needed = protein_weight / scoop_weight
dozen_scoops = scoops_needed / 12
result = dozen_scoops
return result
|
A phone manufacturer had to increase its production five times to meet the demand during the festive season. If the factory normally produces 400 phones per day, how many phones were produced in December? | def solve() -> int:
normal_production = 400
increase = 5
festive_production = normal_production * increase
result = festive_production * 31
return result
|
A company made a profit of $4,500 last year. If the company spent $2,750 on salaries, how much will each of the 5 employees get as bonus? | def solve() -> int:
company_profit = 4500
salary_expenses = 2750
bonus_pool = company_profit - salary_expenses
number_of_employees = 5
bonus_per_employee = bonus_pool/number_of_employees
result = bonus_per_employee
return result
|
A company used to pay a 20% income tax and had a yearly income of 200,000. This year they changed it to a 25% income tax. How much more are they paying in taxes this year compared to last year? | def solve() -> int:
last_year_tax = 200000 * 0.20
this_year_tax = 200000 * 0.25
result = this_year_tax - last_year_tax
return result
|
Jessica’s desk has 4 more purple pens than red pens. There are 6 times as many blue pens as purple pens. How many pens are there in total? | def solve() -> int:
red_pens = 4
purple_pens = red_pens + 4
blue_pens = 6*purple_pens
result = red_pens + purple_pens + blue_pens
return result
|
Noah invests $2000 into a bank account with an annual interest rate of 6%. How much money will he make in 5 years? | def solve() -> int:
investment = 2000
interest_rate = 0.06
time_period = 5
total_interest = (investment * interest_rate) * time_period
total_value = investment + total_interest
result = total_value
return result
|
Larry's pet turtle Rocky eats 60 pieces of cuttlebone in 8 seconds. How many pieces of cuttlebone does Rocky eat in 80 seconds? | def solve() -> int:
turtle_speed = 60/8
duration_in_seconds = 80
result = turtle_speed * duration_in_seconds
return result
|
wants to make 3 dozen cupcakes for a party. How many cupcakes does she need to make? | def solve() -> int:
cupcakes_per_dozen = 12
total_cupcakes = cupcakes_per_dozen * 3
result = total_cupcakes
return result
|
A hotel has 80 rooms. If each room has 2 beds, how many beds are there in the hotel? | def solve() -> int:
rooms = 80
beds_per_room = 2
total_beds = rooms * beds_per_room
result = total_beds
return result
|
Mark has twelve socks and he misplaces two socks every week. How many weeks can he lose socks before he runs out of clean socks? | def solve() -> int:
socks = 12
misplaced_socks_per_week = 2
weeks = socks // misplaced_socks_per_week
result = weeks
return result
|
Student: Rachael bought 60 magazines for a total of $540. How much did each magazine cost? | def solve() -> int:
magazines = 60
total_cost = 540
cost_per_magazine = total_cost / magazines
result = cost_per_magazine
return result
|
A restaurant sells an average of 50 pizzas per day. Each pizza contains 8 slices and 4 people can share a pizza. If the restaurant is open 7 days a week, how many pizzas does the restaurant need to make in a month of 30 days? | def solve() -> int:
pizzas_per_week = 50 * 7
slices_per_week = pizzas_per_week * 8
people_per_week = slices_per_week / 4
pizzas_per_month = people_per_week * 4 * 4.3
result = int(pizzas_per_month)
return result
|
A recipe asks for 2 cups of flour and 1/2 cup of sugar. If you want to double the recipe, how many cups of flour do you need? | def solve() -> int:
flour = 2
sugar = 0.5
new_flour = flour * 2
result = new_flour
return result
|
Ava and Adam both eat 4, six-piece sushi rolls. How many total pieces did they eat? | def solve() -> int:
rolls_per_person = 4
pieces_per_roll = 6
total_pieces = rolls_per_person * pieces_per_roll
result = total_pieces
return result
|
A rectangular box has a surface area of 100 square units. The length of one of its sides is 5 units. Find the volume of the box. | def solve() -> int:
surface_area = 100
l = 5
w = surface_area / (2*l + 4)
h = surface_area / (2*w + 4*l)
vol = l * w * h
result = vol
return result
|
A jewelry store is shutting down and wants to sell everything in the store. They have 200 rings that usually sell for $1,000 each. They offer a 50% discount and manage to sell 60% of the rings. How much money do they make after paying $30,000 for the store rental? | def solve() -> int:
rings = 200
original_price = 1000
discount_percent = 50
discounted_price = original_price * (100 - discount_percent) / 100
rings_sold = rings * 60 / 100
revenue = rings_sold * discounted_price
rental_cost = 30000
profit = revenue - r... |
Ben bought 80 t-shirts at the mall before meeting his friend Emma, who was also buying t-shirts. Ben bought 9 additional t-shirts for every 8 t-shirts Emma bought. If Emma bought 64 t-shirts, how many t-shirts did Ben bring home from the mall? | def solve() -> int:
ben_initial = 80
emma = 64
additional_per_8 = 9
additional = (emma / 8) * additional_per_8
ben_total = ben_initial + additional
result = ben_total
return result
|
Maria has a vase with 12 flowers and needs to add 4 more flowers to make a full bouquet. How many flowers does she need in total for 3 bouquets? | def solve() -> int:
flowers_in_vase = 12
flowers_to_add = 4
bouquets_needed = 3
total_flowers_needed = (flowers_in_vase + flowers_to_add) * bouquets_needed
result = total_flowers_needed
return result
|
A tower is 190m tall. If a bird flying from the ground to the top of the tower covers a distance of 220m, what is the distance covered by the bird to travel from the top of the tower to the ground? | def solve() -> int:
height_of_tower = 190
distance_upwards = 220
distance_downwards = height_of_tower + distance_upwards
result = distance_downwards
return result
|
John wants to buy 6 textbooks and 3 novels. Textbooks normally cost $80 each and novels normally cost $25 each. There is a 15% sale on all books. If the tax rate is 5%, how much should John pay in total? | def solve() -> int:
textbook_price = 80
novel_price = 25
num_textbooks = 6
num_novels = 3
discount = 0.15
tax_rate = 0.05
subtotal = (num_textbooks * textbook_price + num_novels * novel_price) * (1-discount)
tax = subtotal * tax_rate
total_price = subtotal + tax
result = tot... |
Student: A painter can paint a room in 6 hours. If he hires an assistant, they can do the job together in 4 hours. How long would it take for the assistant to finish the job alone? | def solve() -> int:
painter_time = 6
assistant_time = None
together_time = 4
result = assistant_time
return result
|
Jenna has a jar of coins containing 50 coins. The jar consists of quarters and dimes only. If the total value of the coins in the jar is $9.65, how many of each type of coin are in the jar? | def solve() -> int:
total_coins = 50
total_value = 9.65
for q in range(total_coins + 1):
d = total_coins - q
if (0.25 * q) + (0.10 * d) == total_value:
result = (q, d)
return result
|
After a busy day at the movie theater, Alex is counting his register. He has 2 $100 bills, 1 $50 bill, 8 $5 bills, 10 $1 bills, and some change in coins. If he needs to leave $400 in notes and turn in the rest to the manager, how much money will he be turning in? | def solve() -> int:
hundred_bills = 2
fifty_bills = 1
five_bills = 8
one_bills = 10
total_money = (hundred_bills * 100) + (fifty_bills * 50) + (five_bills * 5) + (one_bills * 1)
change = total_money - 400
result = total_money - change
return result
|
The difference between the angles of a pentagon is 72 degrees. How many degrees does a pentagon have in total? | def solve() -> int:
interior_angle = (180 * (5 - 2)) / 5
total_angle = interior_angle * 5
angle_difference = total_angle - (total_angle - 72) - (total_angle - 2*72) - (total_angle - 3*72) - (total_angle - 4*72)
pentagon_angle_solution = total_angle + angle_difference
result = pentagon_angle_solution... |
A fruit stand has 240 apples and 80 oranges. If they bundle the fruit into bags of 4 apples and 2 oranges, how many bags can they make? | def solve() -> int:
apples = 240
oranges = 80
apples_per_bag = 4
oranges_per_bag = 2
max_bags_apples = apples // apples_per_bag
max_bags_oranges = oranges // oranges_per_bag
num_of_bags = min(max_bags_apples, max_bags_oranges)
result = num_of_bags
return result
|
Alex owns a fish farm. He has 50 fish and each fish requires 2 grams of food per day. If he adds 30 more fish, how many grams of food does Alex need for all the fish for 21 days? | def solve() -> int:
fish = 50
food_per_fish = 2
additional_fish = 30
days = 21
total_fish = fish + additional_fish
total_food = total_fish * food_per_fish * days
result = total_food
return result
|
Jess buys an art piece for $500 and pays a 10% sale tax. How much does she pay in all? | def solve() -> int:
art_piece_price = 500
sales_tax_rate = 0.1
subtotal = art_piece_price
sales_tax = subtotal*sales_tax_rate
total = subtotal + sales_tax
result = total
return result
|
If the radius of a circle is 7 inches, find the circumference of the circle in feet. Assume 1 inch equals 0.0833 feet. | def solve() -> int:
radius_inches = 7
pi = 3.14159
circumference_inches = 2 * pi * radius_inches
inches_to_feet = 0.0833
circumference_feet = circumference_inches * inches_to_feet
result = circumference_feet
return result
|
A shop has 200 items for sale. If 25% of them are books, how many non-books are there in the shop? | def solve() -> int:
total_items = 200
book_ratio = 0.25
non_book_count = total_items - (total_items * book_ratio)
result = non_book_count
return result
|
A restaurant can accommodate 50 customers at a time. If there are 150 customers in total, how many times will they have to be served in order to accommodate everyone? | def solve() -> int:
capacity_of_restaurant = 50
total_customers = 150
number_of_services = total_customers // capacity_of_restaurant + int(total_customers % capacity_of_restaurant!= 0)
result = number_of_services
return result
|
A restaurant can serve 40 people in an hour. If the restaurant is open from 12:00 pm to 10:00 pm, how many customers can be served in a day? | def solve() -> int:
hours_open = 10 - 12
customers_per_hour = 40
customers_per_day = customers_per_hour * hours_open
result = customers_per_day
return result
|
A bakery sold 60 croissants and chocolate croissants combined and 2/5 of them were chocolate croissants. How many chocolate croissants did they sell? | def solve() -> int:
total_croissants = 60
num_of_chocolate_croissants = total_croissants * 2 / 5
result = num_of_chocolate_croissants
return result
|
A student is planning a road trip from New York City to Los Angeles. The distance between the two cities is approximately 2800 miles. If the car gets 30 miles per gallon and gas costs $3.50 per gallon, how much will the student spend on gas for the trip? | def solve() -> int:
distance = 2800
mpg = 30
gas_price = 3.5
total_gas = distance / mpg
cost = total_gas * gas_price
result = cost
return result
|
A recipe calls for 3/4 cup of sugar to make 24 cookies. If you want to make 48 cookies, how much sugar do you need? | def solve() -> int:
recipe_for_24 = 0.75
recipe_for_48 = recipe_for_24 * 2
result = recipe_for_48
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.