question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Mia holds the record for running the longest distance in an hour. She can run 12 miles without stopping. Tomas wants to break her record. He is currently able to run 8 miles per hour. How many more miles must he run per hour to beat Mia's record? | def solve() -> int:
mia_distance = 12
tomas_speed = 8
miles_to_beat_record = mia_distance - tomas_speed
result = miles_to_beat_record
return result
|
A factory produced 12000 components in 10 days. How many components should be produced in 25 days if the production rate remains the same? | def solve() -> int:
production_rate = 1200
days_to_produce = 10
additional_days = 25 - days_to_produce
additional_production = additional_days * production_rate
total_production = (days_to_produce * production_rate) + additional_production
result = total_production
return result
|
A soccer team has 12 players and they want to form two equal groups for practice sessions. How many players will be in each group? | def solve() -> int:
num_players = 12
num_groups = 2
players_per_group = num_players / num_groups
result = players_per_group
return result
|
A pizza restaurant sold two types of pizzas for a total of $28. If one type was $11, what was the price of the other type? | def solve() -> int:
pizza1_price = 11
total_price = 28
pizza2_price = total_price - pizza1_price
result = pizza2_price
return result
|
David bought a shirt on a 20% discount. If the price after the discount was $40, what was the original price of the shirt? | def solve() -> int:
discounted_price = 40
discount_rate = 0.2
original_price = discounted_price / (1 - discount_rate)
result = original_price
return result
|
Student: A movie theater has 150 seats. If 80% of the seats are already taken, how many seats are available for sale? | def solve() -> int:
total_seats = 150
percentage_taken = 80
seats_taken = total_seats * (percentage_taken/100)
seats_available = total_seats - seats_taken
result = seats_available
return result
|
John buys 6 cakes for his kids and they eat ¼ of each cake. If each cake is 350g, how much total cake do the kids eat? | def solve() -> int:
weight_of_each_cake = 350
cakes_bought = 6
portion_eaten_by_kids = 1/4
total_cake_eaten = weight_of_each_cake * cakes_bought * portion_eaten_by_kids
result = total_cake_eaten
return result
|
A company has 600 employees. If 45% are women, 30% have a college degree, and 15% are women with a college degree, how many male employees without a college degree does the company have? | def solve() -> int:
total_employees = 600
women_percentage = 0.45
college_degree_percentage = 0.3
women_with_college_percentage = 0.15
women = total_employees*women_percentage
men = total_employees - women
college_degree = total_employees*college_degree_percentage
women_with_college = to... |
Max swam 12 laps less than his friend. Together, they swam 20 laps. How many laps did Max swim? | def solve() -> int:
friend_laps = 20
max_laps = friend_laps - 12
result = max_laps
return result
|
A car traveled from point A to B at an average speed of 60 miles per hour. If the distance between the points A and B is 120 miles, calculate the time the journey took the driver. | def solve() -> int:
distance_AB = 120
average_speed = 60
time_taken = distance_AB/average_speed
result = time_taken
return result
|
In a school, there were 60 students absent in September 2021. The number of students absent due to illness was twice the number of students absent due to vacations, and the number of students absent due to family emergencies was 10 more than the number of students absent due to vacations. What was the total number of s... | def solve() -> int:
absent_total = 60
absent_vacations = absent_total / 5
absent_illness = 2 * absent_vacations
absent_emergencies = absent_vacations + 10
absent_reasons_total = absent_vacations + absent_illness + absent_emergencies
result = absent_reasons_total
return result
|
Student: If in the airplane, first class has 5 passengers, business class had 25 passengers and the total capacity of the plane is 85%, how many seats are unoccupied in economy class? | def solve() -> int:
total_passengers = 5 + 25
total_capacity = 85
total_seats = total_capacity / 100 * total_passengers
result = total_seats - total_passengers
return result
|
Liam and Mia each have a pile of books consisting of two different genres. Liam has 5 mystery books and 15 romance novels. Mia has four times as many mystery books as Liam, but only half as many romance novels. How many more books does Mia have than Liam? | def solve() -> int:
liam_mystery_books = 5
liam_romance_books = 15
mia_mystery_books = 4 * liam_mystery_books
mia_romance_books = 0.5 * liam_romance_books
total_mystery_books = liam_mystery_books + mia_mystery_books
total_romance_books = liam_romance_books + mia_romance_books
diffe... |
At the bakery, 10 loaves of bread were sold on the first day of the sale. On the second day, the bakery sold 20 more loaves. On the third day, the bakery sold twice the number of loaves as it did on the second day. How many loaves of bread were sold during the sale? | def solve() -> int:
day1 = 10
day2 = day1 + 20
day3 = day2 * 2
total = day1 + day2 + day3
result = total
return result
|
andra had 12 booklets, and she divided them equally among 6 friends. How many booklets did each person get? | def solve() -> int:
totalBooklets = 12
numFriends = 6
bookletsPerPerson = totalBooklets // numFriends
result = bookletsPerPerson
return result
|
Annie left for her vacation spot at 7:00 AM and arrived at 6:00 PM. During her journey, she stopped thrice for 30, 20, and 50 minutes respectively. If she travelled for 650 miles, how many hours did she spend on the road? | def solve() -> int:
start_time = 7 * 60
end_time = 18 * 60
total_time = end_time - start_time
total_time -= 30 + 20 + 50
total_time_hours = total_time / 60
result = total_time_hours
return result
|
A triangle has a base of 10 inches and a height of 6 inches. What is the area of the triangle? | def solve() -> int:
area = 0.5 * 10 * 6
result = area
return result
|
A restaurant has 12 tables and serves an average of 50 customers per day. The owner decides to double the number of tables and increases the number of customers by 40%. If the restaurant works concurrently for 6 months, calculate the total number of customers served. | def solve() -> int:
initial_tables = 12
initial_customers_per_day = 50
increase_percentage = 40
months = 6
new_tables = initial_tables * 2
new_customers_per_day = initial_customers_per_day * (1 + increase_percentage/100)
total_customers_served = new_customers_per_day * new_tables *... |
Mary is three times as old as her daughter. In four years, Mary will be twice as old as her daughter. What are their current ages? | def solve() -> int:
mary_age_ratio = 3
mary_in_future_ratio = 2
years = 4
age_difference = mary_age_ratio - 1
daughter_age = years * mary_in_future_ratio / age_difference
mary_age = daughter_age * mary_age_ratio
result = (mary_age, daughter_age)
return result
|
Student: A bakery sells muffins for $2 each and cookies for $1.50 each. If Jane buys 2 muffins and 5 cookies, what is the total cost of her items excluding tax? | def solve() -> int:
muffins = 2
cookies = 5
total_cost = muffins * 2 + cookies * 1.5
result = total_cost
return result
|
There are 100 students in a school. If 15 students move out and 25 students move in. How many students are in the school in the end? | def solve() -> int:
students = 100
students -= 15
students += 25
result = students
return result
|
Student: A recipe calls for 2 teaspoons of salt. If I'm only making a half batch of the recipe, how many teaspoons of salt do I need? | def solve() -> int:
recipe_amount = 2
batch_amount = 0.5
result = recipe_amount * batch_amount
return result
|
Ben makes cookies. He uses 3 cups of flour, 2 cups of chocolate chips, 1 cup of butter, and 1/4 cup of sugar. The flour costs $0.8 per cup, the chocolate chips cost $1.5 per cup, the butter costs $2.4 per cup, and the sugar costs $0.6 per cup. How much does the ingredients cost? | def solve() -> int:
flour_cost = 3 * 0.8
chocolate_cost = 2 * 1.5
butter_cost = 1 * 2.4
sugar_cost = 0.25 * 0.6
total_cost = flour_cost + chocolate_cost + butter_cost + sugar_cost
result = total_cost
return result
|
In a football team, 45% of the players are defenders and there are 110 midfielders. How many defenders are there? | def solve() -> int:
total_players = 100
midfielders = 110
non_midfielders_percentage = 100 - (midfielders / total_players) * 100
defenders = (non_midfielders_percentage / 100) * total_players * 0.45
defenders = round(defenders)
result = defenders
return result
|
A gym is closed every Saturday. On each Saturday, the gym could have made $1,200. How much revenue did the gym potentially lose during 3 years of operation? A group of 5 friends ordered 3 large pizzas for dinner. Each pizza had 8 slices. If each friend ate 2 slices per meal, how many meals did they get from the pizzas ... | def solve() -> int:
revenue_per_saturday = 1200
saturdays_per_year = 52
years_of_operation = 3
revenue_lost = revenue_per_saturday * saturdays_per_year * years_of_operation
friends = 5
pizzas = 3
slices_per_pizza = 8
slices_per_meal = 2
total_slices = pizzas * slices_p... |
Calvin needs to purchase stationary supplies for the new semester. He is buying a pack of 5 pencils, a pack of 4 markers and 3 pads of paper. The pencils cost $2.50, the markers cost $5.00 and the pads of paper cost $2.75. What is the total cost of the stationary that Calvin needs? | def solve() -> int:
pencils = 5
price_pencils = 2.50
markers = 4
price_markers = 5
pads = 3
price_pads = 2.75
total_cost = pencils * price_pencils + markers * price_markers + pads * price_pads
result = total_cost
return result
|
am has 700 pencils in a drawer. He gives away one-seventh of them to his classmates and then breaks one-eighth of the remaining pencils. He finds out that 60 of the remaining pencils are red and the rest are black. How many black pencils does he have? | def solve() -> int:
pencils = 700
pencils = pencils - pencils // 7
pencils = pencils - pencils // 8
red = 60
black = pencils - red
result = black
return result
|
The deposit for a rental car is $200. If the car rental costs $40 per day, how many days can you rent the car if you only have $500 in total? | def solve() -> int:
deposit = 200
rental_cost = 40
total_money = 500
days_rented = (total_money - deposit)/rental_cost
result = days_rented
return result
|
Mia has 6 marbles. Zoe has 1/3 as many marbles as Mia and Noah has twice as many marbles as Zoe. How many marbles do they have in total? | def solve() -> int:
mia = 6
zoe = mia * 1/3
noah = zoe * 2
total = mia + zoe + noah
result = total
return result
|
Jack and Jill have 10, four-sided dice for their game. How many total sides are there? | def solve() -> int:
num_dice = 10
num_sides = 4
total_sides = num_dice * num_sides
result = total_sides
return result
|
Six months ago, the cost of a gym membership was 3/10 of what it is now. If the cost of the gym membership was $200 six months ago, how much is it now? | def solve() -> int:
cost_six_months_ago = 200
cost_now = cost_six_months_ago * (10/3)
result = cost_now
return result
|
Gavin went running. He ran 800m on the first day, 1200m on the second day, 800m on the third day, and 1200m on the fourth day. How many meters did Gavin run in total? | def solve() -> int:
distance_day_1 = 800
distance_day_2 = 1200
distance_day_3 = 800
distance_day_4 = 1200
total_distance = distance_day_1 + distance_day_2 + distance_day_3 + distance_day_4
result = total_distance
return result
|
A rectangle has a perimeter of 36 meters. If its length is 12 meters, what is its width? | def solve() -> int:
perimeter = 36
length = 12
width = (perimeter - 2*length)/2
result = width
return result
|
Student: A movie theater sells popcorn for $5.25 each and drinks for $2.50 each. If a family bought 2 popcorns and 4 drinks, and paid with a $50 bill, how many $5 bills did they receive as change? | def solve() -> int:
popcorn = 5.25
drink = 2.50
popcorns_bought = 2
drinks_bought = 4
total_cost = popcorn * popcorns_bought + drink * drinks_bought
amount_paid = 50
change = amount_paid - total_cost
five_bills = change / 5
result = five_bills
return result
|
==== Here are some possible questions and programs: When Bob walked into the pet store, he saw 18 animals in three different cages. The first cage had 4 rabbits, each with 4 legs. The second cage had 6 birds, each with 2 legs and 2 wings. The third cage had some lizards, each with 4 legs and a tail. How many legs and w... | def solve() -> int:
rabbits = 4
birds = 6
lizards = 18 - rabbits - birds
rabbit_legs = rabbits * 4
bird_legs = birds * 2
bird_wings = birds * 2
lizard_legs = lizards * 4
total = rabbit_legs + bird_legs + bird_wings + lizard_legs
result = total
return result
|
Two people went to the mall. Each person bought 5 items. How many items were bought in total? | def solve() -> int:
num_people = 2
num_items_per_person = 5
num_items_total = num_people * num_items_per_person
result = num_items_total
return result
|
A store sells 100 items. 70% of them have a price tag of $20 and the rest have a price tag of $30. What's the total value of all the items in the store? | def solve() -> int:
num_items = 100
price_1st_half = 0.7*num_items*20
price_2nd_half = 0.3*num_items*30
total_value = price_1st_half + price_2nd_half
result = total_value
return result
|
Juanita spent 25% of her money on food, 30% of her remaining money on rent, and 20% of her remaining money on clothes. She has $420 left. How much money did Juanita have to begin with? | def solve() -> int:
left_1 = 75
left_2 = 70
left_3 = 80
left_4 = 420
x = (left_4 / (left_1 / 100)) / (left_2 / 100) / (left_3 / 100)
result = x
return result
|
A factory produces 650 boxes of crackers each day. If a box contains 24 crackers, how many crackers does the factory produce per week (7 days)? | def solve() -> int:
boxes_per_day = 650
crackers_per_box = 24
crackers_per_week = boxes_per_day * crackers_per_box * 7
result = crackers_per_week
return result
|
Jason has 6 cousins. 2 of them have a birthday in January, 1 of them has a birthday in July, and 3 of them have a birthday in November. If Jason always buys each of his cousins a birthday present and a Christmas present, how many more presents does he have to buy in the fourth quarter of the year than the first quarter... | def solve() -> int:
january_bdays = 2
july_bdays = 1
november_bdays = 3
total_cousins = january_bdays + july_bdays + november_bdays
presents_first_quarter = total_cousins * 2
presents_fourth_quarter = november_bdays * 2
difference = presents_fourth_quarter - presents_first_qua... |
Student: Sarah baked 48 cookies for a party. She ate 1/4 of them and gave 1/3 to her friend. How many cookies did she have left? | def solve() -> int:
total_cookies = 48
eaten_cookies = total_cookies / 4
given_cookies = total_cookies / 3
left_cookies = total_cookies - eaten_cookies - given_cookies
result = left_cookies
return result
|
A hotel charges $150 per night for a room plus an additional $25 per night for each extra person. If a room has 3 people staying in it for 4 nights, how much will the total bill be? | def solve() -> int:
additional_people = 3 - 1
additional_cost = additional_people * 25 * 4
total_cost = (150 * 4) + additional_cost
result = total_cost
return result
|
Samantha needed to buy a new outfit for a job interview. She bought a blazer for $50.00, a blouse for $25.00, a pair of pants for $35.00, and a pair of shoes for $40.00. She also had a 20% off coupon for the blouse. If Samantha paid with a $100 bill, how much change would she receive? | def solve() -> int:
blazer_price = 50.00
blouse_price = 25.00
pants_price = 35.00
shoes_price = 40.00
blouse_discount = 0.20 * blouse_price
total_price = blazer_price + blouse_price + pants_price + shoes_price - blouse_discount
change = 100.00 - total_price
result = round(... |
David needs to cut a 6 meter board into 8 equal pieces. How long would each piece be? | def solve() -> int:
total_length = 6
num_pieces = 8
length_per_piece = total_length / num_pieces
result = length_per_piece
return result
|
Melissa has pear trees that yield 3 pears each. If a pear can be sold for $1.25 and Melissa needs $67.50, how many pear trees does she have to harvest? | def solve() -> int:
pears_per_tree = 3
price_per_pear = 1.25
total_money_needed = 67.50
pears_needed = total_money_needed / price_per_pear
trees_needed = pears_needed / pears_per_tree
result = round(trees_needed)
return result
|
Jaden can type a page in 8 minutes, while Brad can type a page in 10 minutes. How long would it take both of them to type 6 pages if they work together at the same time? | def solve() -> int:
time_needed = 0
time_jaden = 8
time_brad = 10
pages_needed = 6
time_needed = max(time_jaden,time_brad)*pages_needed
result = time_needed
return result
|
Theo has 7 fewer puzzles than board games. He added 18 puzzles into the box. If he now has 49 puzzles, how many board games does he have? | def solve() -> int:
puzzles = 49
puzzles_original = puzzles - 18
board_games_original = puzzles_original + 7
result = board_games_original
return result
|
Two different restaurants serve customers pizzas that are equal in size. Restaurant A charges $6 per pizza, while Restaurant B charges $9 per pizza. If one customer purchased 12 pizzas from Restaurant A and 8 pizzas from Restaurant B, how much money did they spend? | def solve() -> int:
total_cost = 6*12 + 9*8
result = total_cost
return result
|
Student: A garden has 60 flowers. One-fourth of them are roses and the rest are tulips. How many more tulips than roses are there in the garden? | def solve() -> int:
total_flowers = 60
roses = total_flowers / 4
tulips = total_flowers - roses
difference = tulips - roses
result = difference
return result
|
Student: Matthew planted 39 miniature trees, 25 medium-sized trees, and 15 large trees in a nursery. If the miniature trees have a 45% chance of growth, the medium-sized trees have a 65% chance of growth, and the large trees have a 75% chance of growth, how many of Matthew's trees will grow? | def solve() -> int:
mini_trees = 39
med_trees = 25
large_trees = 15
mini_growth_chance = 0.45
med_growth_chance = 0.65
large_growth_chance = 0.75
num_mini_trees_grow = mini_trees * mini_growth_chance
num_med_trees_grow = med_trees * med_growth_chance
num_large_trees_grow = large_tree... |
At the art store, Brad sells 20 canvases for $10.00 each, 15 easels for $15.00 each, and 4 gallon of paint for $20.00 each. How much money does Brad make from the sale? | def solve() -> int:
canvases = 20 * 10
easels = 15 * 15
paint = 4 * 20
total = canvases + easels + paint
result = total
return result
|
Sarah ran for 3 miles every day last week. She decided to increase her running distance and ran for 5 miles every day this week. How much longer did Sarah run every day this week compared to last week? | def solve() -> int:
last_week_distance = 3
this_week_distance = 5
difference = this_week_distance - last_week_distance
result = difference
return result
|
A car travels 100 miles in 2 hours. What is the average speed of the car in miles per hour? | def solve() -> int:
distance = 100
time = 2
average_speed = distance / time
result = average_speed
return result
|
Grace and Henry want to buy some candy from a store. Grace has $12 and can buy 3 pieces of candy for $1. Henry has $9 and can buy 2 pieces of candy for $1. How many pieces of candy can they buy in total? | def solve() -> int:
grace_candy = 12 * 3
henry_candy = 9 * 2
total_candy = grace_candy + henry_candy
result = total_candy
return result
|
Three friends have a total of $60 to split. The second friend has three times as much money as the first friend, and the third friend has $6 more than the second friend. How much money does the first friend have? | def solve() -> int:
first_friend = 0
second_friend = 0
third_friend = 0
total_money = 60
ratio = 3
first_friend = total_money / (1 + ratio + ratio*ratio)
second_friend = first_friend * ratio
third_friend = second_friend + 6
result = first_friend
retu... |
Lucy earns $10 per hour working at a cafe. She also gets 5% of the total tips that the customers leave. One day, she worked for 6 hours and the total tips were $120. How much money did Lucy make that day? | def solve() -> int:
hourly_wage = 10 * 6
tip_share = 0.05 * 120
total_money = hourly_wage + tip_share
result = total_money
return result
|
Student: Jenna has a recipe that serves 8 people. If she needs to serve 24 people, how much of each ingredient will she need? | def solve() -> int:
serves_8 = 8
serves_24 = 24
ingredient_amount = serves_24 / serves_8
result = ingredient_amount
return result
|
- Sam plays soccer and basketball. He plays soccer for 1.5 hours twice a week and basketball for 2 hours once a week. He also spends 15 minutes each time stretching and drinking water. How many hours does he spend on sports every week? | def solve() -> int:
soccer_time = 1.5 * 2
basketball_time = 2 * 1
sports_time = soccer_time + basketball_time
extra_time = 15 * 3
extra_time = extra_time / 60
result = sports_time + extra_time
return result
|
Rachel runs a pet adoption center and has 80 pets to give away. If 8 people each adopt 2 pets, and 20 pets are returned because they don't get along with their new families, how many pets are left in Rachel's center? | def solve() -> int:
total_pets = 80
num_people = 8
num_pets_per_person = 2
num_pets_returned = 20
num_pets_adopted = num_people * num_pets_per_person
num_pets_left = total_pets - num_pets_adopted
final_num_pets = num_pets_left + num_pets_returned
result... |
A rectangular plot of land is 50 meters wide and 80 meters long. What is the perimeter of the plot? | def solve() -> int:
width = 50
length = 80
perimeter = (2*width)+(2*length)
result = perimeter
return result
|
Student: Joe has a collection of 65 comic books. He wants to divide them among 7 of friends. How many comic books will each friend receive? | def solve() -> int:
comic_books = 65
friends = 7
quotient = comic_books // friends
remainder = comic_books % friends
result = quotient
return result
|
Michael has a piece of metal that is 2 feet wide and 10 feet long. If he wants to make a square and use all the metal, what is the length of each side of the square? | def solve() -> int:
width = 2
length = 10
total_area = width * length
side_length = total_area ** 0.5
result = side_length
return result
|
The fan in an office rotates 5 times every 15 seconds. How many times does it rotate in 6 hours? | def solve() -> int:
rotations_per_minute = 5 / 15
rotations_per_hour = rotations_per_minute * 60
rotations_in_six_hours = rotations_per_hour * 6
result = rotations_in_six_hours
return result
|
Student: Bob has 3 times as many dimes as nickels. He has a total of 85 cents in his hand. How many nickels is he holding? | def solve() -> int:
dimes = 0
nickels = 0
total_cents = 85
dimes = total_cents // 10
nickels = dimes // 3
result = nickels
return result
|
Rita is preparing for a garage sale. She has 3 tables to display items. On each table, she can fit 5 rows of items with 7 items in each row. How many items will Rita be able to display at the garage sale? | def solve() -> int:
rows_per_table = 5
items_per_row = 7
tables = 3
items_per_table = rows_per_table * items_per_row
total_items = items_per_table * tables
result = total_items
result
return result
|
Student: Ben has $6000. He invests half of it in stocks that bring in a 10% return annually and the other half in bonds that bring in a 5% return annually. How much money will Ben make from his investments in one year? | def solve() -> int:
total_money = 6000
stock_rate = 0.1
bond_rate = 0.05
stock_money = total_money / 2
bond_money = total_money / 2
stock_profit = stock_money * stock_rate
bond_profit = bond_money * bond_rate
total_profit = stock_profit + bond_profit
result = total_profit
return... |
Student: Jeff collected 12 pots of flowers from his garden and gave half of them to his neighbor. How many pots of flowers did Jeff keep? | def solve() -> int:
pots_collected = 12
half_pots = pots_collected / 2
pots_kept = pots_collected - half_pots
result = pots_kept
return result
|
A cafeteria sells sandwiches and drinks for lunch. The cafeteria sells 50 sandwiches and 75 drinks each day. A sandwich costs $2.50, and a drink costs $1.25. How much money does the cafeteria make each day? | def solve() -> int:
num_sandwiches = 50
num_drinks = 75
cost_of_sandwich = 250
cost_of_drink = 125
total_money_made_per_day = (num_sandwiches * cost_of_sandwich + num_drinks * cost_of_drink) / 100
result = total_money_made_per_day
return result
|
Student: Nigel needs to rent a car for a business trip next week. The rental price is $15.50 per day plus a one-time fee of $6.50. How much will Nigel need to pay if he rents the car for 4 days? | def solve() -> int:
daily_price = 15.50
one_time_fee = 6.50
num_days = 4
total_cost = daily_price * num_days + one_time_fee
result = total_cost
return result
|
Ben collects stamps and sells them online. He buys stamps for $0.5 each and sells them for $1.2 each. He also pays a $10 fee for each order he makes and a $5 fee for each order he sells. If he buys 200 stamps and sells 150 of them, how much profit does he make? | def solve() -> int:
buy_price = 0.5
sell_price = 1.2
buy_fee = 10
sell_fee = 5
buy_quantity = 200
sell_quantity = 150
total_cost = buy_price * buy_quantity + buy_fee
total_revenue = sell_price * sell_quantity - sell_fee
profit = total_revenue - total_cost
result = profit
... |
A garden has a length of 25 meters and a width of 15 meters. If each square meter of the garden requires 3 liters of water, how many liters of water are needed to water the entire garden? | def solve() -> int:
length = 25
width = 15
square_meters = length * width
liters_of_water = square_meters * 3
result = liters_of_water
return result
|
Kevin raises pigeons, and his adult pigeons recently had five nests of 18 each. He gave an eighth of the baby pigeons to his friend Lana to keep as pets. He sold four times the number of babies he gave Lana to a pet store. A half of the remaining pigeons were sold to mongoose owners as feeder pigeons. How many baby pig... | def solve() -> int:
total_pigeons = 5 * 18
pigeons_to_lana = total_pigeons // 8
pigeons_to_pet_store = 4 * pigeons_to_lana
remaining_pigeons = total_pigeons - pigeons_to_lana - pigeons_to_pet_store
sold_as_feeder_pigeons = remaining_pigeons // 2
pigeons_left = remaining_pigeons - sold_as_feeder_... |
Student: A car rental company charges $25.00 per day plus $0.50 per mile driven. If a customer rents a car for 3 days and drives a total of 200 miles, how much will the rental cost? | def solve() -> int:
days = 3
miles = 200
cost_per_day = 25
cost_per_mile = 0.50
total_cost = days * cost_per_day + miles * cost_per_mile
result = total_cost
return result
|
A rectangular swimming pool has a length of 20 feet and a width of 10 feet. If the pool holds 10,000 gallons of water, how deep is the pool? | def solve() -> int:
length = 20
width = 10
volume = 10000
one_cubic_foot = 7.48
pool_volume = volume / one_cubic_foot
depth = pool_volume / (length * width)
result = depth
return result
|
Nina has 6 dresses, each with two ribbons. She also has 9 dresses with one ribbon each, two dresses with four ribbons each, and another five dresses with three ribbons each. How many ribbons does Nina have on all of her dresses combined? | def solve() -> int:
dresses_with_two_ribbons = 6
dresses_with_one_ribbon = 9
dresses_with_four_ribbons = 2
dresses_with_three_ribbons = 5
total_ribbons = (dresses_with_two_ribbons * 2) + (dresses_with_one_ribbon * 1) + (dresses_with_four_ribbons * 4) + (dresses_with_three_ribbons * 3)
... |
Mark baked 3 dozen cupcakes and 4 dozen cookies. How many baked goods did he bake? | def solve() -> int:
num_cupcakes = 3 * 12
num_cookies = 4 * 12
total_baked_goods = num_cupcakes + num_cookies
result = total_baked_goods
return result
|
Student: Jack has 14 apples. He shared them equally with each of his 6 friends. How many apples does each person get? | def solve() -> int:
jack_apples = 14
jack_friends = 6
total_people = jack_friends + 1
apples_per_person = jack_apples / total_people
result = apples_per_person
return result
|
A woman walks in a garden and meets a flock of 4 birds. Each bird invites 2 other birds. How many birds are in the garden? | def solve() -> int:
birds_in_flock = 4
birds_invited = birds_in_flock * 2
birds_in_garden = birds_in_flock + birds_invited
result = birds_in_garden
return result
|
Student: Mohammed bought 5 boxes of cereal each costing 3 dollars. How much did he spend in total? | def solve() -> int:
box_num = 5
cost_per_box = 3
total_cost = box_num * cost_per_box
result = total_cost
return result
|
Ethan solved 20 math problems on Monday and 30 on Tuesday. On Wednesday, he solved three times the number of problems he solved on the first two days. How many math problems did Ethan solve in total? | def solve() -> int:
monday_problems = 20
tuesday_problems = 30
wednesday_problems = (monday_problems + tuesday_problems) * 3
total_problems = monday_problems + tuesday_problems + wednesday_problems
result = total_problems
return result
|
Adam is making lemonade in the ratio of 1 cup of water to every 2 cups of sugar. He used 66 cups of water to make lemonade. How many cups of sugar did he use? | def solve() -> int:
water_cups = 66
ratio = 1/2
sugar_cups = (water_cups * 2)/ratio
result = sugar_cups
return result
|
A car travels at a speed of 60 miles per hour. How many miles does it travel in 2.5 hours? | def solve() -> int:
speed = 60
time = 2.5
distance = speed * time
result = distance
return result
|
Brian spent $105 on 9 movie tickets. Three of the tickets cost $12 each, and the rest cost $11 each. What is the average price per ticket? | def solve() -> int:
total_tickets = 9
cost_of_three_tickets = 3 * 12
cost_of_remaining_tickets = (total_tickets - 3) * 11
total_cost = cost_of_three_tickets + cost_of_remaining_tickets
average_cost = total_cost / total_tickets
result = average_cost
return result
|
Harry has 6 orange balloons and 11 blue balloons. He buys twice as many red balloons as the number of orange balloons he currently has. After accidentally popping one of the blue balloons, how many balloons does Harry have left? | def solve() -> int:
orange_balloons = 6
blue_balloons = 11
red_balloons = 2 * orange_balloons
blue_balloons -= 1
total_balloons = orange_balloons + blue_balloons + red_balloons
result = total_balloons
return result
|
A horse is galloping through a rectangular track at 30 MPH. It takes 2.5 hours to go across the length of the track. It then travels the whole width of the track at the same speed, which takes 18 minutes. How many square miles is the track? | def solve() -> int:
length = 30 * 2.5
width = 30 * 0.3
area = length * width
result = area
return result
|
A family takes 3 trips in a car with 20 seats. The first trip, 5 adults and 3 children board the car. The second trip, 2 adults board the car and 5 adults get off. The third trip, 15 adults board the car and 6 get off. How many adults are in the car after the third trip? | def solve() -> int:
t1_adults = 5
t1_children = 3
t2_board_adults = 2
t2_off_adults = 5
t3_board_adults = 15
t3_off_adults = 6
total_adults_trip1 = t1_adults + t2_board_adults
total_adults_trip2 = total_adults_trip1 - t2_off_adults
total_adults_trip3 = total_adults_tri... |
At a car garage, David counts the number of cars. Half the cars are red and 1/4 are sports cars. If there are 60 red cars, how many are sports cars? | def solve() -> int:
red_cars = 60
total_cars = red_cars * 2
sports_cars = total_cars / 4
result = sports_cars
return result
|
Isabelle wants to buy a watch that costs $300. However, the store is offering a 2-for-1 deal. What is the cost for two watches? | def solve() -> int:
price = 300
num_watches = 2
total_price = price * num_watches / 2
result = total_price
return result
|
Ben has 36 marbles on Monday. On Tuesday he loses 6 of them in a game. On Wednesday he wins 9 marbles from another game. On Thursday he gives away a third of what he had on Monday to his sister. How many marbles does he have on Thursday? | def solve() -> int:
marbles = 36
lose = 6
marbles = marbles - lose
win = 9
marbles = marbles + win
give_away = 36 // 3
marbles = marbles - give_away
result = marbles
return result
|
If 5 people can finish a project in 10 days, how many days will 3 people need to complete the same project? | def solve() -> int:
num_person_const = 5
days_const = 10
num_person = 3
total_days = days_const/num_person_const*num_person
result = total_days
return result
|
Paul owns a fruit store. He bought 21 apples for $1.68 each and 7 oranges for $2.32 each. How much did he spend on these fruits? | def solve() -> int:
apples_number = 21
apples_cost = 1.68
oranges_number = 7
oranges_cost = 2.32
total_cost = 0
total_cost = (apples_number * apples_cost) + (oranges_number * oranges_cost)
result = total_cost
return result
|
Tom has a loan in the bank. Two months ago, he paid $150 while last month, he paid $50 more. If his loan was $500 in total, how much does he still need to pay off? | def solve() -> int:
loan = 500
paid_two_months_ago = 150
paid_last_month = paid_two_months_ago + 50
total_paid = paid_two_months_ago + paid_last_month
still_owed = loan - total_paid
result = still_owed
return result
|
8. Sean has 120 slices of kiwi to put together. If each plate requires 8 slices, how many plates can he make? | def solve() -> int:
slices = 120
plates = slices / 8
result = plates
return result
|
Student: A factory produces 500 widgets a day. If they want to produce 10% more, how many widgets will they need to produce? | def solve() -> int:
original_production = 500
percent_increase = 0.1
increase_in_production = original_production * percent_increase
total_production = original_production + increase_in_production
result = total_production
return result
|
A recipe requires 2 1/2 cups of flour and 3/4 cup of sugar. If you want to make 3 batches of the recipe, how much flour and sugar will you need in total? | def solve() -> int:
total_flour = 2.5 * 3
total_sugar = 0.75 * 3
result = total_flour + total_sugar
return result
|
There were 100 apples in a basket. Each day, the number of apples reduced by 10% of the previous day's number. How many apples will be left after 5 days? | def solve() -> int:
days_remaining = 5
apples_left = 100
for i in range(days_remaining):
apples_left *= 0.9
result = apples_left
return result
|
Mr. Sanchez is planning a trip to the beach. He wants to rent 6 beach umbrellas and 8 beach chairs. Each umbrella requires 4 poles and each beach chair requires 2 poles. How many poles in total will Mr. Sanchez need to rent? | def solve() -> int:
umbrellas = 6
chairs = 8
poles_per_umbrella = 4
poles_per_chair = 2
total_poles = (umbrellas * poles_per_umbrella) + (chairs * poles_per_chair)
result = total_poles
return result
|
Student: 4. An aircraft travels a certain distance and uses 9/20 of the fuel for the journey. If it had 2000 gallons of fuel for the journey, how much fuel was used? | def solve() -> int:
distance = None
fuel_used = None
total_fuel = 2000
fuel_used = total_fuel * (9/20)
result = fuel_used
return result
|
Student: John bought a refrigerator for $800 and a table for $500. Since he paid with his credit card, he was charged 5% tax for the table and 12% tax for the refrigerator. How much money was taken from his credit card in total for the two items? | def solve() -> int:
refrigerator_price = 800
table_price = 500
table_tax_rate = 0.05
refrigerator_tax_rate = 0.12
table_tax = table_price * table_tax_rate
refrigerator_tax = refrigerator_price * refrigerator_tax_rate
total_tax = table_tax + refrigerator_tax
result = total_tax + refrigera... |
Jenny has a stock of 100 t-shirts in her store. During the day, she sells 20 of them and buys back 25 more. The next day, she sells 15 more and buys 8 more. How many t-shirts does she have now in stock? | def solve() -> int:
t_shirts_in_stock = 100
t_shirts_sold_day1 = 20
t_shirts_bought_day1 = 25
t_shirts_sold_day2 = 15
t_shirts_bought_day2 = 8
t_shirts_in_stock -= t_shirts_sold_day1
t_shirts_in_stock += t_shirts_bought_day1
t_shirts_in_stock -= t_shirts_sold_day2
t_shirts_in_st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.