question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Alex fills up his car with 12 gallons of gas for $36. How much does it cost per gallon of gas? | def solve() -> int:
total_gallons = 12
total_cost = 36
cost_per_gallon = total_cost/total_gallons
result = cost_per_gallon
return result
|
A pizza seller sells 12-inch pizzas for $20 and 16-inch pizzas for $40. If there is a 25% discount on the pizza with extra cheese, what will be the cost of 3 extra-cheese pizzas (2 large, 1 medium) with 9% tax? | def solve() -> int:
large_pizza_price = 40
medium_pizza_price = 20
price_with_extra_cheese = 1.25 * large_pizza_price
total_price = 2 * price_with_extra_cheese + medium_pizza_price
tax = total_price * 0.09
final_price = total_price + tax
result = final_price
return result
|
Student: A container of juice is 1.5 liters. If there are 240 milliliters of juice in each glass, how many glasses can be filled from one container? | def solve() -> int:
container_volume = 1.5
glass_volume = 240
container_volume_ml = container_volume * 1000
num_glasses = container_volume_ml // glass_volume
result = num_glasses
return result
|
A local pizza shop charges $10 for a plain cheese pizza and $2 for each additional topping. If Tina's pizza has 3 additional toppings, how much did she pay? | def solve() -> int:
pizza_cost = 10 + (2*3)
result = pizza_cost
return result
|
Possible questions and programs: Leah biked 8 km from her home to the library in Toronto. She spent an hour reading there and then biked 4 km to the park to meet her friends. After playing for an hour, she biked back home the same way. How many kilometers did Leah bike in total? | def solve() -> int:
home_to_library = 8
library_to_park = 4
total_distance = home_to_library + library_to_park + library_to_park + home_to_library
result = total_distance
return result
|
Student: A train travels at a speed of 54 km/hr. How far will it travel in 4.5 hours? | def solve() -> int:
speed = 54
time = 4.5
distance = speed * time
result = distance
return result
|
Jack is measuring the weight of fruit in a basket for his horticulture project. On the first day, he weighed 5 pounds of fruit. On the second day, he weighed 7 pounds of fruit. On the third day, he weighed 3 pounds less than the second day. The average weight of fruit in the basket for the first three days in a normal ... | def solve() -> int:
first_day_weight = 5
second_day_weight = 7
third_day_weight = second_day_weight - 3
total_weight = first_day_weight + second_day_weight + third_day_weight
average_weight = total_weight / 3
difference = average_weight - total_weight
result = difference
r... |
If Jenny goes for a 2-mile walk in the morning and another 3-mile walk in the evening, every day, how many miles does she walk in 21 days? | def solve() -> int:
total = 0
for i in range(21):
total += 5
result = total
return result
|
A charity event needs to order enough t-shirts for all the volunteers. The organization has 80 volunteers signed up, but then they find out that 2 out of 5 volunteers won't be able to attend. They also want to order 10 extra t-shirts in case they need them. How many t-shirts should the charity order? | def solve() -> int:
volunteers = 80
absent_volunteers = 2/5 * volunteers
present_volunteers = volunteers - absent_volunteers
extra_tshirts = 10
total_tshirts = present_volunteers + extra_tshirts
result = total_tshirts
return result
|
pike ate 45 crickets this week. If he ate twice as many on Tuesday as he did on Monday, and then ate 5 crickets per day for the rest of the week, how many did he eat on Tuesday? | def solve() -> int:
crickets_per_week = 45
crickets_per_day = 5
monday_crickets = crickets_per_day
tuesday_crickets = monday_crickets * 2
remaining_crickets = crickets_per_week - (monday_crickets + tuesday_crickets)
result = tuesday_crickets
return result
|
Aiden is a musician. He earns $40 per hour for playing at a wedding. He also sells 20 CDs of his music for $8 each. He pays $100 for renting the equipment and $60 for the gas. How much money does he make in total from the wedding and the CD sales? | def solve() -> int:
hourly_rate = 40
num_cds = 20
price_cds = 8
cost_renting = 100
cost_gas = 60
income_playing = hourly_rate * 4
income_selling = num_cds * price_cds
total_income = income_playing + income_selling
total_expense = cost_renting + cost_gas
money_made... |
A school district has 15 buses to transport 477 students for a field trip. Each bus can carry up to 33 students. How many students will be on each bus, on average? | def solve() -> int:
num_buses = 15
num_students = 477
bus_capacity = 33
average_students_per_bus = num_students/(num_buses + 1)
result = average_students_per_bus
return result
|
Student: Q9: A troop had 30 soldiers. 12 soldiers were sent out and 3 soldiers returned. After going out again, 7 soldiers returned and 11 soldiers came back. How many soldiers in the troop now? | def solve() -> int:
soldiers_init = 30
sent_out_1 = 12
returned_1 = 3
sent_out_2 = 7
returned_2 = 11
soldiers_now = soldiers_init - sent_out_1 + returned_1 - sent_out_2 + returned_2
result = soldiers_now
return result
|
A restaurant ordered 40 boxes of beef. Each box contains 25 kg of meat. After cooking, 10% of the meat was unedible. The remaining beef was divided into portions of 0.25 kg each. How many portions were there? | def solve() -> int:
total_kg = 40 * 25
usable_kg = total_kg * 0.9
total_portions = usable_kg / 0.25
result = total_portions
return result
|
Student: A rectangular box has length 4 cm, width 2 cm, and height 3 cm. What is the volume in cubic centimeters? | def solve() -> int:
length = 4
width = 2
height = 3
volume = length * width * height
result = volume
return result
|
5. Kate is learning 10 new words per day and she wants to learn all the words in the dictionary which has 100 words. How many days does it take Kate to learn all the words? | def solve() -> int:
words_per_day = 10
total_words = 100
num_days = total_words/words_per_day
result = num_days
return result
|
There are 15 kids in a classroom. The teacher has 3 packs of pencils. Each pack contains 12 pencils. How many pencil left if each kid will get one pencil? | def solve() -> int:
kids_num = 15
packs_num = 3
pencils_num = 12
total_pencils = packs_num * pencils_num
left_pencils = total_pencils - kids_num
result = left_pencils
return result
|
Possible questions and programs: Molly usually wakes up at 7:00 am and takes 45 minutes to get ready and catch the bus to school. One day, she oversleeps by 15 minutes and misses the bus, which leaves at 7:50 am. How long does she have to wait for the next bus if the buses run every 20 minutes? | def solve() -> int:
normal_wake_up = 7 * 60
normal_bus_time = normal_wake_up + 45
late_wake_up = normal_wake_up + 15
late_bus_time = late_wake_up + 45
remainder = late_bus_time % 20
if remainder == 0:
next_bus_time = late_bus_time
else:
next_bus_time = late_bus_time + (... |
A company has 3 factories. Factory 1 produces 1000 units, Factory 2 produces 500 units, and Factory 3 produces 250 units every day. If the company sells 1500 units every day, how many units should each factory produce? | def solve() -> int:
units_sold_per_day = 1500
units_per_day_factory1 = 1000
units_per_day_factory2 = 500
units_per_day_factory3 = 250
total_units_produced_per_day = units_per_day_factory1 + units_per_day_factory2 + units_per_day_factory3
percent_units_factory1 = units_per_day_factory1 / total_un... |
Student: Frank is a third-year student at college in Paris. He has a budget of 800 Euros per semester. He spends 45% of his money on food, 20% on accommodation, 15% on entertainment, and the rest on coursework materials. How much money does he spend on coursework materials? | def solve() -> int:
budget = 800
food_cost = budget * 0.45
accommodation_cost = budget * 0.2
entertainment_cost = budget * 0.15
coursework_cost = budget - food_cost - accommodation_cost - entertainment_cost
result = coursework_cost
return result
|
Student: There were 48 students on the school bus. At the first stop, 12 students got off. At the second stop, 8 more students got off and 5 new students got on. How many students are on the bus now? | def solve() -> int:
students = 48
first_stop = 12
second_stop = 8
new_students = 5
students = students - first_stop
students = students - second_stop
students = students + new_students
result = students
return result
|
A sports team scored 5 points in the first quarter and 3 points in the second quarter. How many points did the team score in total? | def solve() -> int:
first_quarter_points = 5
second_quarter_points = 3
total_points = first_quarter_points + second_quarter_points
result = total_points
return result
|
Katie is tracking her daily medication intake. She takes 1 pill in the morning, 2 pills in the afternoon, and 3 pills in the evening. If each pill has 5 milligrams of painkiller, how many milligrams of painkiller does Katie consume in a day? | def solve() -> int:
morning_pills = 1
afternoon_pills = 2
evening_pills = 3
pill_dosage = 5
total_morning_dosage = morning_pills * pill_dosage
total_afternoon_dosage = afternoon_pills * pill_dosage
total_evening_dosage = evening_pills * pill_dosage
total_daily_dosage = tot... |
If a rectangle has a perimeter of 38 units and one side is 11 units long, what is the length of the other side? | def solve() -> int:
perimeter = 38
known_side = 11
unknown_side = (perimeter - (2 * known_side))/2
result = unknown_side
return result
|
Maria is fundraising for the local library. She sells $200 worth of used books and donates 60% of the proceeds to the library. She sells $75 worth of homemade candles and donates 80% of the proceeds to the library. Lastly, she sells $100 worth of handmade quilts and donates 90% of the proceeds to the library. How much ... | def solve() -> int:
books_sold = 200
candles_sold = 75
quilts_sold = 100
books_donated = 0.6 * books_sold
candles_donated = 0.8 * candles_sold
quilts_donated = 0.9 * quilts_sold
total_donated = books_donated + candles_donated + quilts_donated
result = total_donated
ret... |
arah can swim 50m in 40 seconds. She wants to know how long it would take her to swim 200m at the same speed. | def solve() -> int:
distance = 200
speed = 50/40
time = distance/speed
result = time
return result
|
Erica had 72 assorted balls. One-fourth of the balls were soccer balls and the rest were basketballs. She then sold one-third of the soccer balls and one-half of the basketballs to a sports store. She then bought 6 new tennis balls with the money she earned. How many balls did she have in total? | def solve() -> int:
soccer = 72 // 4
basketball = 72 - soccer
sold_soccer = soccer // 3
sold_basketball = basketball // 2
left_soccer = soccer - sold_soccer
left_basketball = basketball - sold_basketball
bought_tennis = 6
total = left_soccer + left_basketball + bought_tennis
result =... |
Student: Janet earned $100 a day. Every day, she saved 40% of her pay and spent the rest. After 30 days of work, she saved $1,102. How much did Janet spend in 30 days? | def solve() -> int:
daily_pay = 100
daily_saving = 0.4 * daily_pay
total_saving = 1102
total_spending = total_saving / daily_saving * daily_pay
result = total_spending
return result
|
In eight years, Sam will be twice as old as Lucy. If Sam's age is currently three-fifths of his sister's age, who is 30, how old is Lucy now? | def solve() -> int:
sam_age = (3/5) * 30
lucy_age = sam_age - 8
result = lucy_age
return result
|
Michael walks at a speed of 5 miles per hour. He walked for 45 minutes on Monday, 30 minutes on Tuesday, 1 hour on Wednesday, and 15 minutes on Thursday. If he wants to walk a total of 15 miles this week, how long must he walk on Friday? Jared ate four times as many slices of pizza minus two as he did hot dogs. If he a... | def solve() -> int:
speed = 5
monday = 0.75
tuesday = 0.5
wednesday = 1
thursday = 0.25
distance_walked = speed * (monday + tuesday + wednesday + thursday)
distance_left = 15 - distance_walked
friday = distance_left / speed
result = friday
return res... |
Jordan has purchased a car for $18,000 and has taken out a loan with an interest rate of 6%. Over the course of 5 years, how much more does he have to pay in total compared to the original price of the car? | def solve() -> int:
original_cost = 18000
interest_rate = 6/100
num_years = 5
total_years_cost = original_cost * (1+interest_rate)**num_years
result = total_years_cost - original_cost
return result
|
Mary has 2 kinds of candies. She has 55 blue candies and 25 red candies. She wants to distribute them equally among her 7 friends. How many candies will each of her friends get? | def solve() -> int:
blue = 55
red = 25
total = blue + red
friends = 7
each_friend = total // friends
result = each_friend
return result
|
A tank can hold 200 liters of water. If it is already filled to 80% of its capacity, how many liters more can it hold? | def solve() -> int:
capacity = 200
filled_percent = 0.8
filled_liters = capacity * filled_percent
remaining_liters = capacity - filled_liters
result = remaining_liters
return result
|
A car can travel 500 kilometers on a full tank of gas. If gas costs $2.50 per liter and the car's tank holds 60 liters, how much money does it cost to fill up the tank? Answer: It costs $150 to fill up the tank. | def solve() -> int:
distancePerTank = 500
tankCapacity = 60
pricePerLiter = 2.50
totalPrice = tankCapacity * pricePerLiter
result = totalPrice
return result
|
There are 24 students in a classroom. If the teacher hands out 32 pencils, how many pencils does each student get on average? | def solve() -> int:
students = 24
pencils = 32
pencils_per_student = pencils / students
result = round(pencils_per_student, 2)
return result
|
Susan has 25 shirts. One-fourth of them have stripes and the rest are solid colored. Of those that are solid colored, half have pockets and the rest do not. How many shirts does Susan have that are solid colored and have no pockets? | def solve() -> int:
total_shirts = 25
striped_shirts = total_shirts / 4
solid_colored_shirts = total_shirts - striped_shirts
shirts_with_pockets = solid_colored_shirts / 2
shirts_without_pockets = solid_colored_shirts - shirts_with_pockets
result = shirts_without_pockets... |
Andrew went to a toy store to buy some gifts for his nephew. He bought 10 action figures for $2 each, two board games for $10 each, and a remote control car, that was four times more expensive than one board game. How much did Andrew pay for his gift shopping? | def solve() -> int:
action_figures = 10
board_games = 2
remote_control_car = 4 * board_games
action_figures_cost = action_figures * 2
board_games_cost = board_games * 10
remote_control_car_cost = remote_control_car * 10
total_cost = action_figures_cost + board_games_cost + remote_c... |
Student: A family of 6 buys tickets for a roller coaster ride. Each ticket costs $8. They also spend $12 on snacks and drinks. How much money do they spend in total in 2 days? | def solve() -> int:
num_people = 6
ticket_price = 8
snack_price = 12
num_days = 2
total_cost = num_people * ticket_price * num_days + snack_price * num_days
result = total_cost
return result
|
Scott wants to save $3000 for a trip. He currently has $1200 and will save $150 each month for rent for the next 10 months. How much money will Scott have saved in 10 months? | def solve() -> int:
starting_amount = 1200
monthly_savings = 150
goal_amount = 3000
months = 10
total_savings = starting_amount + (monthly_savings * months)
result = total_savings
return result
|
A rectangle has a length of 7 meters and a width of 4 meters. What is the perimeter of the rectangle? | def solve() -> int:
length_of_rectangle = 7
width_of_rectangle = 4
perimeter_of_rectangle = 2 * (length_of_rectangle + width_of_rectangle)
result = perimeter_of_rectangle
return result
|
A construction company has 28 employees working on a project. Each employee must have safety equipment costing $250. If the company has a budget of $10,000 for safety equipment, how many employees can be provided with safety equipment? | def solve() -> int:
num_employees = 28
cost_per_employee = 250
budget = 10000
total_cost = num_employees * cost_per_employee
max_employees = budget // cost_per_employee
result = max_employees
return result
|
Carla drops her phone and the battery life reduces by 90%. After replacing the battery, the phone's battery life becomes four times its old battery life. If the previous battery life was 10 hours, how long will the phone last now? | def solve() -> int:
old_battery_life = 10
new_battery_life = old_battery_life * (1 - 0.9)
final_battery_life = new_battery_life * 4
result = final_battery_life
return result
|
Anita has 10 rolls of paper towels with 4 rolls in each pack, and her brother has 33 loose paper towels. They want to put all the paper towels in the packs. If Anita has a total of 73 paper towels, how many more packs do they need? | def solve() -> int:
rolls_per_pack = 4
anita_packs = 10
anita_total = anita_packs * rolls_per_pack
brother_loose = 33
total_towels = anita_total + brother_loose
packs_needed = (total_towels // rolls_per_pack) - anita_packs
result = packs_needed
return r... |
Possible questions and programs: A baker has 120 eggs and 150 cups of flour. He needs 3 eggs and 4 cups of flour to make one cake. How many cakes can he make using all the eggs and flour? | def solve() -> int:
eggs_per_cake = 3
max_cakes_with_eggs = 120 // eggs_per_cake
flour_per_cake = 4
max_cakes_with_flour = 150 // flour_per_cake
cakes = min(max_cakes_with_eggs, max_cakes_with_flour)
result = cakes
return result
|
Anna has $800. She spent 40% of the money on a designer bag and then spent 20% of the remaining money on shoes. How much money did she spend on shoes? | def solve() -> int:
money = 800
spent_money = money * 0.4
money_left = money - spent_money
shoes_money = money_left * 0.2
result = shoes_money
return result
|
Michael has been working as an architect for 30 years. 5 years ago, his partner had three times as much experience as Michael. What is the experience of Michael’s partner now? | def solve() -> int:
michael_experience = 30
partner_experience_5_years_ago = 3 * (michael_experience - 5)
partner_experience_now = partner_experience_5_years_ago + 5
result = partner_experience_now
return result
|
A family is planning a road trip. The first day they drive for 6 hours at an average speed of 60 km/h. The second day they drive for 8 hours at an average speed of 80 km/h. What is the average speed of the entire trip? | def solve() -> int:
total_time = 14
total_distance = 6 * 60 + 8 * 80
average_speed = total_distance / total_time
result = average_speed
return result
|
Leah is a furniture dealer who buys furniture from manufacturers and then delivers them to the customers at a markup. She buys individual furniture from manufacturers at a cost of $200 per piece, and sells them to customers at a price of $400 per piece. If each truck contains 10 pieces, how much profit, in dollars, doe... | def solve() -> int:
cost_per_piece = 200
selling_price_per_piece = 400
pieces_per_truck = 10
total_pieces_sold = 50
total_cost = cost_per_piece * total_pieces_sold
total_revenue = selling_price_per_piece * total_pieces_sold
total_profit = total_revenue - total_cost
re... |
``` A class has 30 students. 40% of the students are male and the rest are female. How many female students are in the class? | def solve() -> int:
num_male = 30 * (40/100)
num_female = 30 - num_male
result = num_female
return result
|
Here are some possible questions: Tom and Lucy went to a bookstore to buy some books. Each book costs $4, but the bookstore has a special deal: for every 3 books that customers buy, they get a free bookmark. Tom buys 7 books and Lucy buys 4 books. How much money do they spend in total? | def solve() -> int:
book_cost = 4
total_books = 7 + 4
free_bookmarks = total_books // 3
book_money = total_books * book_cost
bookmark_money = free_bookmarks * book_cost
total_money = book_money - bookmark_money
result = total_money
return result
|
Mark has $100 and he wants to spend $45 on buying some books and a poster. Later, he wants to save enough money to buy a bicycle worth $150. If he saves $20 every week, how many weeks will it take for him to have enough money to buy a bicycle? | def solve() -> int:
money = 100
spending = 45
remain_money = money - spending
want_to_save = 150 - remain_money
saving_per_week = 20
number_of_weeks = want_to_save // saving_per_week
result = number_of_weeks
return result
|
A technology company releases a certain laptop that costs $300 more to manufacture than their other laptops. However, it sells for 1.4 times the price of the other laptops, which cost $1,000 each. How much more profit does the technology company make by selling the higher priced laptop? | def solve() -> int:
other_laptop_cost = 1000
higher_laptop_cost = other_laptop_cost + 300
higher_laptop_price = 1.4 * other_laptop_cost
higher_laptop_profit = higher_laptop_price - higher_laptop_cost
result = higher_laptop_profit
return result
|
A cuboidal water tank has dimensions 5 m x 4 m x 3 m. How much water (in liters) will it hold when completely filled? | def solve() -> int:
volume_of_tank = 5*4*3
water_vol = volume_of_tank*(1000)
result = water_vol
return result
|
Dave is a professional weightlifter. He wins his first 25 competitions of his career. He then goes on to win 15 more before losing his first competition and then quadruples his number of wins before losing again. He then retires. How many more wins than losses does he have at the end of his career? | def solve() -> int:
wins_before_loss = 25
additional_wins = 15
losses_before_retirement = 2
total_wins = wins_before_loss + additional_wins + (additional_wins * 4)
total_losses = losses_before_retirement
wins_minus_losses = total_wins - total_losses
result = wins_minus_losses
... |
Emma is trying to improve her volleyball skills. She spends 1 hour practicing her serves, spikes, and digs every day for 7 days a week. She also plays in a volleyball league that meets 3 times a week for 1.5 hours. How many hours does Emma spend training each week? | def solve() -> int:
hours_per_day = 1
days_per_week = 7
hours_per_league = 1.5
times_per_week = 3
hours_per_week = (hours_per_day * days_per_week) + (hours_per_league * times_per_week)
result = hours_per_week
return result
|
Amanda has 2 boxes of candles with 24 candles in each box. If each candle has a burn time of 5 hours, how many hours will all the candles burn for? Maria has a dishwasher, a washing machine, and a hair dryer that consume power at different rates. The total amount she pays for the energy used by the washing machine is f... | def solve() -> int:
num_boxes = 2
candles_per_box = 24
burn_time = 5
total_candles = num_boxes * candles_per_box
total_burn_time = total_candles * burn_time
hair_dryer_cost = 80
washing_machine_cost = hair_dryer_cost * 2
total_cost = hair_dryer_cost + washing_machine_cost
... |
Student: In a store, there are 180 apples and 240 oranges. If 60 apples are sold, what percentage of the remaining fruits are oranges? | def solve() -> int:
apples = 180
oranges = 240
apples_sold = 60
fruits_remaining = apples + oranges - apples_sold
oranges_remaining = oranges - (apples_sold * oranges / apples)
percentage_oranges_remaining = oranges_remaining / fruits_remaining * 100
result = percentage_oranges_remaining
... |
A shoe store has 3 types of boots. They sell ankle boots twice as much as knee-high boots, and snow boots four times as much as ankle boots. The snow boots sell a sixth as much as the knee-high boots. If they sold 6 knee-high boots today, how many ankle boots did they sell? | def solve() -> int:
knee_high_boots = 6
ankle_boots = 0
snow_boots = 0
ankle_boots = knee_high_boots * 2
snow_boots = ankle_boots * 4
snow_boots = knee_high_boots / 6
result = ankle_boots
return result
|
A car travels 30 miles per gallon of gas. If the car's gas tank holds 12 gallons of gas, how many miles can the car drive on a full tank of gas? | def solve() -> int:
miles_per_gallon = 30
gas_tank_gallons = 12
total_miles = miles_per_gallon * gas_tank_gallons
result = total_miles
return result
|
A store sells a dress for $85.00. If the store owner offers a 10% discount, what will be the price of the dress after the discount? | def solve() -> int:
dress_price = 85.00
discount_rate = 0.10
discount_amt = discount_rate * dress_price
new_price = dress_price - discount_amt
result = new_price
return result
|
If there are 15 cupcakes and six students, how many cupcakes will each student get if they share them equally? | def solve() -> int:
cupcakes = 15
students = 6
cupcakes_per_student = cupcakes / students
result = cupcakes_per_student
return result
|
A company's revenue increases by 30% over the course of a year. If their revenue was $1,000,000 last year, what is their revenue this year? | def solve() -> int:
last_year_revenue = 1000000
revenue_increase = 1.3
this_year_revenue = last_year_revenue * revenue_increase
result = round(this_year_revenue)
return result
|
A bag contains 20 red balls and 10 blue balls. Two balls are drawn at random without replacement. What is the probability that both balls are red? | def solve() -> int:
red = 20
blue = 10
total = red + blue
p_red1 = red / total
red = red - 1
total = total - 1
p_red2 = red / total
p_both_red = p_red1 * p_red2
result = p_both_red
return result
|
Maria baked 24 cupcakes and divided them equally among 6 friends. How many cupcakes did each friend get and how many cupcakes were left over? | def solve() -> int:
total_cupcakes = 24
number_of_friends = 6
cupcakes_per_friend = total_cupcakes // number_of_friends
cupcakes_left_over = total_cupcakes % number_of_friends
result = (cupcakes_per_friend, cupcakes_left_over)
return result
|
Student: Joe has $100 and he spends 40 percent of it each month. How much will he have left at the end of 3 months? | def solve() -> int:
initial_amount = 100
spending_rate = 0.4
monthly_spending = initial_amount * spending_rate
first_month_left = initial_amount - monthly_spending
second_month_left = first_month_left - monthly_spending
third_month_left = second_month_left - monthly_spending
result = third_m... |
A charity collected $5000 from a fundraiser. If they donate 20% to a local food bank, how much money will they donate? | def solve() -> int:
total = 5000
donation_percentage = 20
donation_amount = total * (donation_percentage / 100)
result = donation_amount
return result
|
Possible new questions: A witch needs to brew 15 liters of a potion to cast a spell. She has a cauldron that can hold 4 liters and a bottle that can hold 600 milliliters. How many times does she need to fill the bottle and pour it into the cauldron to brew enough potion? | def solve() -> int:
cauldron_capacity = 4 * 1000
bottle_capacity = 600
potion_amount = 15 * 1000
bottles_per_cauldron = cauldron_capacity // bottle_capacity
cauldrons_needed = potion_amount // cauldron_capacity
potion_remainder = potion_amount % cauldron_capacity
bottles_for_remainder = poti... |
Kevin has a box of crayons that has 12 red, 8 blue, and 10 green crayons. He uses 2 red, 3 blue, and 4 green crayons to draw a picture. He then lends 5 red and 2 blue crayons to his friend Lily. How many crayons does Kevin have left in his box? | def solve() -> int:
before = 12 + 8 + 10
uses = 2 + 3 + 4
lends = 5 + 2
left = before - uses - lends
result = left
return result
|
In a family, the father is twice as old as his daughter. If the daughter is 12 years old now, how old was the father when the daughter was born? | def solve() -> int:
daughter = 12
father = daughter * 2
father_age_diff = father - daughter
father_when_daughter_was_born = father_age_diff + daughter
result = father_when_daughter_was_born
return result
|
Alice has some copper pennies. If she spends them in a store, they are worth the regular amount. If she melts them down, she can get $3 per pound. Each penny weighs 2.5 grams. How many times more money would she get from melting them down instead of spending them in a store? | def solve() -> int:
ratio = (3 / 453.592) / 0.01
result = round(ratio, 2)
return result
|
A room has dimensions 10 feet by 12 feet. What is the area of the room in square feet? | def solve() -> int:
length = 10
width = 12
area = length * width
result = area
return result
|
Dylan and Sarah are driving down a street that is 50 feet wide at one end. If the street's width increases from this end uniformly by 5 feet every 25 meters along, and they drive along the street at a rate of 8 m/s, how long (A bee hive has 100 bees living in it. Some bees have produced honey, and now there are twice a... | def solve() -> int:
width_start = 50
increase_per_meter = 5/25
distance = 2000
width_end = width_start + increase_per_meter * distance
area = (width_start + width_end)/2 * distance
bees_start = 100
worker_bees = bees_start * 2
total_bees = bees_start + worker_bees
honey = total_bees... |
Two trains are running in opposite directions between two cities which are 385 km apart. One is moving at a speed of 50 km/hr, and the other is moving at a speed of 60 km/hr. How long does it take for them to meet? | def solve() -> int:
distance = 385
speed_train_1 = 50
speed_train_2 = 60
total_speed = speed_train_1 + speed_train_2
time = distance / total_speed
result = time
return result
|
At a certain school, the ratio of male to female students in 8th grade is 4 to 3. If there are 100 total students in the 8th grade, how many male students are there? | def solve() -> int:
total_students = 100
male_to_female_ratio = 4/3
male_students = total_students/(male_to_female_ratio + 1)
result = male_students
return result
|
Hannah has 30 marbles. She wants to split them equally among herself and her 4 friends. How many marbles will each person get? | def solve() -> int:
total_marbles = 30
number_of_people = 5
marbles_per_person = total_marbles / number_of_people
result = marbles_per_person
return result
|
A rectangle has a length of 15 cm and an area of 225 cm^2. What is the width of the rectangle? | def solve() -> int:
length = 15
area = 225
width = area / length
result = width
return result
|
Bob buys 15 apples and half as many oranges. The apples cost $0.8 each and the oranges cost $1.2 each. How much did everything cost? | def solve() -> int:
apples = 15
oranges = apples // 2
apple_cost = 0.8
orange_cost = 1.2
total_apple_cost = apples * apple_cost
total_orange_cost = oranges * orange_cost
total_cost = total_apple_cost + total_orange_cost
result = total_cost
return result
|
A store has 10% discount on all items. A $60 item will receive a discount of what amount? | def solve() -> int:
original_price = 60
discount_rate = 0.1
discount = original_price * discount_rate
result = discount
return result
|
Karen purchased 8 paperback books and 5 hardcover books for a total of $95. If each paperback book costs $8, how much does each hardcover book cost? | def solve() -> int:
total_cost = 95
num_paperback_books = 8
paperback_book_cost = 8
num_hardcover_books = 5
hardcover_cost = (total_cost - (num_paperback_books * paperback_book_cost))/num_hardcover_books
result = hardcover_cost
return result
|
Gary moves to a new home and needs to purchase paint for the walls. One gallon of paint costs $40. Gary needs to paint a room with 4 walls of 10 x 10 feet dimensions. Each wall requires one gallon of paint. How much does Gary spend on paint? | def solve() -> int:
gallon_price = 40
wall_number = 4
wall_length = 10
wall_width = 10
area = wall_number*wall_length*wall_width
paint_needed = area/400
cost = paint_needed * gallon_price
result = cost
return result
|
In a candy store, there were 120 gummies left after Kim ate 40 gummies the day before. Her cousin brings three times as many gummies as Kim originally had. They mix the gummies and divide them equally. How many gummies did Kim's cousin have left after eating 20? | def solve() -> int:
gummies_left = 120
gummies_eaten_by_kim = 40
gummies_brought_by_cousin = 3 * gummies_eaten_by_kim
total_gummies = gummies_left + gummies_brought_by_cousin
gummies_per_person = total_gummies / 2
gummies_eaten_by_cousin = 20
gummies_left_after_eating = gummies_per... |
Harry wants to buy a new phone for $399. He has $700 saved up but he needs to pay 7.5% sales tax. How much money does he have left for other expenses? | def solve() -> int:
phone_price = 399
saved_money = 700
sales_tax = 0.075
phone_with_tax = phone_price*sales_tax
remaining_money = saved_money - phone_price - phone_with_tax
result = remaining_money
return result
|
Emily has a box of 30 donuts and a box of 45 muffins. She wants to divide them equally among herself and her 5 co-workers. How many pastries will each person get? | def solve() -> int:
num_donuts = 30
num_muffins = 45
num_people = 6
total_pastries = num_donuts + num_muffins
pastries_per_person = total_pastries / num_people
result = pastries_per_person
return result
|
If it takes a car 1 hour and 20 minutes to travel 75 miles, how long will it take to travel 150 miles at the same speed? | def solve() -> int:
distance1 = 75
time1 = 1.33
distance2 = 150
time2 = (distance2 / distance1) * time1
result = time2
return result
|
Student: Mia has 3 trays with 14 cupcakes in each tray and 4 trays with 12 cupcakes in each tray. If Mia sells 66 cupcakes, how many cupcakes does Mia have left? | def solve() -> int:
tray_14 = 3
cupcakes_14 = 14
tray_12 = 4
cupcakes_12 = 12
sold = 66
total_cupcakes = tray_14 * cupcakes_14 + tray_12 * cupcakes_12
left = total_cupcakes - sold
result = left
return result
|
A school has 240 students and 12 classrooms. Each classroom has the same number of students. How many students are in each classroom? | def solve() -> int:
students_per_classroom = 240 / 12
result = students_per_classroom
return result
|
Jacob wants to buy a new phone that costs $700. He received an early bird offer where Jacob gets a 10% discount if he books the phone before the release date. Additionally, Jacob exchanges his old phone which has a value of $200. What will be the final price Jacob will pay for the new phone? | def solve() -> int:
price_of_phone = 700
discount = 0.1
value_of_old_phone = 200
amount_of_discount = price_of_phone * discount
price_after_discount = price_of_phone - amount_of_discount
final_price = price_after_discount - value_of_old_phone
result = final_price
... |
A family of 4 is going on a road trip. Each day, they drive for 6 hours, and take a 1-hour break. If they want to reach their destination in 5 days, how many hours total will they spend driving? | def solve() -> int:
family_size = 4
drive_time = 6
break_time = 1
total_days = 5
total_drive_time = (family_size * (drive_time + break_time)) * (total_days - 1) + (family_size * drive_time)
result = total_drive_time
return result
|
Katie has 40 stickers. She traded 15 stickers with her friend and bought 30 new ones. Then, Katie gave 12 stickers to her sister and 5 stickers to her teacher. How many stickers does Katie have left? | def solve() -> int:
stickers = 40
traded_stickers = 15
bought_stickers = 30
given_to_sister = 12
given_to_teacher = 5
stickers -= traded_stickers
stickers += bought_stickers
stickers -= given_to_sister
stickers -= given_to_teacher
result = stickers
return result
|
During a hike, a group of friends walk 2 miles uphill and then 4 miles downhill. If they do this loop three times, what's the total distance they walked? | def solve() -> int:
uphill_distance = 2
downhill_distance = 4
total_distance = (uphill_distance + downhill_distance) * 3
result = total_distance
return result
|
Janice paid $800 for 40 pens, which was five times the price that Alex paid. How much did Alex pay for each pen? | def solve() -> int:
x = 800 / (5 * 40)
result = x
return result
|
A rectangular pool is 10 meters by 5 meters. If the pool is filled to a depth of 2 meters, what is the volume of the water? | def solve() -> int:
length = 10
width = 5
depth = 2
volume = length * width * depth
result = volume
return result
|
-Kelly plans to bake 24 cupcakes and 16 cookies for her friends. She has already baked 3/8 of the cupcakes and 1/4 of the cookies. How many more cupcakes and cookies does she need to bake? | def solve() -> int:
total_cupcakes = 24
total_cookies = 16
fraction_cupcakes = 3/8
fraction_cookies = 1/4
baked_cupcakes = fraction_cupcakes * total_cupcakes
baked_cookies = fraction_cookies * total_cookies
to_bake_cupcakes = total_cupcakes - baked_cupcakes
to_bake_cookies = total_cookie... |
Ava is a carpenter. She gets 5 blocks of wood for each piece of furniture she builds. If Ava builds 10 pieces of furniture every day, how many blocks of wood does she get after 5 days? | def solve() -> int:
blocks_per_furniture = 5
pieces_built_each_day = 10
days = 5
total_blocks = blocks_per_furniture * pieces_built_each_day * days
result = total_blocks
return result
|
Student: Aditi, Ben and Cara collected coins from different countries and put them in separate jars. Aditi has 150 Indian rupees, Ben has 80 Canadian dollars and Cara has 60 Euros. How much money do they have in total if 1 Indian rupee = 0.02 Australian dollars, 1 Canadian dollar = 1.08 Australian dollars and 1 Euro = ... | def solve() -> int:
indian_rupees = 150
canadian_dollars = 80
euros = 60
indian_to_aus = 0.02
canadian_to_aus = 1.08
euro_to_aus = 1.55
total_aus_dollars = indian_rupees * indian_to_aus + canadian_dollars * canadian_to_aus + euros * euro_to_aus
result = total_aus_dollars
return resu... |
At the end of a rainbow, a leprechaun finds 75 gold coins, 45 silver coins, and 31 copper coins. If each silver coin is worth 6 copper coins, and each gold coin is worth 4 silver coins, what is the total value of the coins expressed as a number of copper coins? | def solve() -> int:
total_money = 0
total_money = 75*4*6 + 45*6 +31
result = total_money
return result
|
- Ali has 15 chocolate bars to share with his family. He wants to give each of his 3 siblings 4 chocolate bars, and keep the rest for himself. How many chocolate bars does Ali keep? | def solve() -> int:
chocolate_bars_given = 3 * 4
chocolate_bars_left = 15 - chocolate_bars_given
result = f"Ali keeps {chocolate_bars_left} chocolate bars for himself."
return result
|
A sushi restaurant orders tuna in bulk, with each bulk order containing 25 pounds of tuna. If the restaurant orders 5 bulk orders of tuna per week, how many pounds of tuna do they consume per year? | def solve() -> int:
pounds_of_tuna_per_bulk_order = 25
bulk_orders_of_tuna_per_week = 5
pounds_of_tuna_per_week = pounds_of_tuna_per_bulk_order * bulk_orders_of_tuna_per_week
weeks_per_year = 52
pounds_of_tuna_per_year = pounds_of_tuna_per_week * weeks_per_year
result = pounds_of_tuna_per_year
... |
Lee and Jordan each have 20 coins. Jordan gives 6 coins to Lee. How much money do they have after the transaction? | def solve() -> int:
coins_lee = 20
coins_jordan = 20
transaction = 6
coins_lee = coins_lee + transaction
coins_jordan = coins_jordan - transaction
result = coins_lee + coins_jordan
return result
|
Student: A cake recipe calls for 2 cups of sugar and 3 cups of flour. If the recipe is doubled, what percentage of the cake is sugar? | def solve() -> int:
original_sugar = 2
original_flour = 3
doubled_sugar = original_sugar * 2
doubled_flour = original_flour * 2
total_ingredients = doubled_sugar + doubled_flour
percentage_sugar = doubled_sugar / total_ingredients * 100
result = percentage_sugar
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.