question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
A can of corn contains 128 ounces of corn. How many cups are there in one can of corn? | def solve() -> int:
ounces_in_a_can = 128
ounces_in_a_cup = 8
total_cups = ounces_in_a_can/ounces_in_a_cup
result = total_cups
return result
|
Carlos had $180 and he used 2/5 of the money to buy new clothes, 1/4 of the money to buy books, and the remaining money to buy snacks. How much money did he use to buy snacks? | def solve() -> int:
amount_carlos_have = 180
amount_clothes = amount_carlos_have * 2/5
amount_books = amount_carlos_have * 1/4
result = amount_carlos_have - amount_clothes - amount_books
return result
|
If one apple weighs 5 ounces and one banana weighs 3 ounces, how many ounces are there in 6 apples and 8 bananas? | def solve() -> int:
apple_weight = 5
banana_weight = 3
num_apples = 6
num_bananas = 8
total_weight = (apple_weight*num_apples) + (banana_weight*num_bananas)
result = total_weight
return result
|
If Andres read 25 more than four times the pages that Lucia read, and Lucia read 375 pages, how many pages did Andres read? | def solve() -> int:
lucia_pages = 375
andres_pages = 4 * lucia_pages + 25
result = andres_pages
return result
|
John has a total of 58 oranges. If he puts them in boxes with 8 oranges in each box, how many boxes does he need? | def solve() -> int:
oranges_per_box = 8
num_boxes = 58 // 8
result = num_boxes
return result
|
Kelsey is baking cookies and she needs to use 2 cups of flour, 1/2 cup of sugar, and 1/4 teaspoon of salt for each batch. She decides to make 10 batches of cookies to sell at a bake sale. If she sells each batch for $12, how much profit will she make if she buys the ingredients in bulk for $30? | def solve() -> int:
num_batches = 10
flour_per_batch = 2
sugar_per_batch = 0.5
salt_per_batch = 1/4
bulk_ingredients_cost = 30
batch_sale_price = 12
total_flour = flour_per_batch * num_batches
total_sugar = sugar_per_batch * num_batches
total_salt = salt_per_batch * num_batches
t... |
A cylindrical tank has a radius of 5 meters and is 20 meters tall. What is the volume, in cubic meters, of water it can hold? | def solve() -> int:
radius = 5
height = 20
pi = 3.14159
volume = pi * radius ** 2 * height
result = volume
return result
|
A burger costs $5 and a hot dog costs $4. Clara buys 3 burgers and 2 hot dogs. What is the total cost of the burgers and hot dogs? | def solve() -> int:
burger_cost = 5
hotdog_cost = 4
total_burgers = 3
total_hotdogs = 2
total_cost = (burger_cost * total_burgers) + (hotdog_cost * total_hotdogs)
result = total_cost
return result
|
A vase has 30 flowers. 1/3 of the flowers are red, 1/5 are white, and the remaining seven are yellow. How many flowers are yellow? | def solve() -> int:
red = 30 * 1/3
white = 30 * 1/5
yellow = 30 - red - white - 7
result = yellow
return result
|
An employee worked 40 hours per week for 3 weeks and has a pay rate of $25 per hour. How much did the employee make for the 3 weeks? | def solve() -> int:
hours_per_week = 40
num_of_weeks = 3
pay_rate_per_hour = 25
total_pay = hours_per_week * num_of_weeks * pay_rate_per_hour
result = total_pay
return result
|
Student: A rectangle has a length of 16 inches. If its area is 112 square inches, what is the width of the rectangle? | def solve() -> int:
length = 16
area = 112
width = area / length
result = width
return result
|
Principal Peterson is supervising an exam for a class of 27 students. A quarter of the students have ADHD, which increases the time needed to monitor the exam by 35%. If it takes her 2 minutes to monitor each non-special needs student, how long does it take to monitor the entire class? | def solve() -> int:
students = 27
adhd_students = students / 4
non_special_needs_students = students - adhd_students
time_per_student = 2
increased_time = time_per_student * 0.35
total_time = (non_special_needs_students * time_per_student) + (adhd_students * (time_per_student + increased_time))
... |
At a festival, 300 tickets were sold for a total of $1800. If a ticket costs $6, how many tickets were sold? | def solve() -> int:
total_money = 1800
cost_per_ticket = 6
total_tickets = total_money/cost_per_ticket
result = total_tickets
return result
|
Ashley needs to buy supplies for her class of 20 students and each student needs 5 markers that each cost $1. How much does she spend on markers? | def solve() -> int:
sum = 0
for x in range(0, 20):
for y in range(0, 5):
sum = sum + 1
result = sum
return result
|
To make 5 servings of soup, you need 5 ounces of vegetables. How much vegetables will you need to make 40 servings of soup? | def solve() -> int:
vegetables = (5/5)*40
result = vegetables
return result
|
Liz spent the day baking. She bought 4 pounds of flour for $1.50 each, 3 dozen eggs for $2 each, and 5 bags of sugar for $1.25 each. How much did she spend? | def solve() -> int:
flour = 4 * 1.50
eggs = 3 * 2
sugar = 5 * 1.25
total = flour + eggs + sugar
result = total
return result
|
A toy store has 500 toys in stock, and each toy costs $10. If half of the toys are sold, how much money does the toy store have? | def solve() -> int:
total_money = 500 * 10
toys_sold = 500 / 2
result = total_money - (toys_sold * 10)
return result
|
amantha traveled 240 miles in 4 hours. If she wants to travel 450 miles, how long will her trip take her assuming she drives at the same rate? | def solve() -> int:
distance = 450
speed = 240 / 4
time = distance / speed
result = time
return result
|
Paul orders a customized gown costing $300 plus additional expenses of $8/yd for the material. The material supplier charges $3/mile for delivering the material. If Paul orders 5 yds of material and is located 100 miles from the supplier, how much will he need to pay in total? | def solve() -> int:
num_yards = 5
material_rate_per_yard = 8
delivery_cost_per_mile = 3
distance_to_supplier = 100
base_price = 300
material_cost = num_yards * material_rate_per_yard
delivery_cost = distance_to_supplier * delivery_cost_per_mile
total_cost = material_cost + delivery_cost ... |
Alex is two years younger than David. When David celebrates his 30th birthday, how old will Alex be in years? | def solve() -> int:
david_age = 30
alex_age = david_age - 2
result = alex_age
return result
|
Student: Ella has 9 times as many dolls as Zoe. Zoe has 1/9 as many dolls as Mia has. How many fewer dolls does Ella have than Mia, if Mia has 27 dolls? | def solve() -> int:
zoe_dolls = 27 / 9
ella_dolls = zoe_dolls * 9
mia_dolls = 27
result = ella_dolls - mia_dolls
return result
|
A book has 400 pages. If John reads 50 pages per day, how many days will it take him to finish reading the book? | def solve() -> int:
total_pages = 400
pages_per_day = 50
num_of_days = total_pages / pages_per_day
result = num_of_days
return result
|
Bob can make 3 bracelets per hour, 10 earrings per hour, and 2 necklaces per hour. If he wants to make a total of 15 bracelets, 25 earrings, and 8 necklaces, how many hours will it take him? | def solve() -> int:
total_brac = 15/3
total_earr = 25/10
total_neck = 8/2
total_time = total_brac + total_earr + total_neck
result = total_time
return result
|
A mom wants to split 50 pieces of candy evenly among her 5 kids. If each kid must get at least 7 pieces of candy, how many pieces of candy can each of the 5 kids get, and how many pieces of candy are left over? | def solve() -> int:
total_candy = 50
total_kids = 5
minimum_candy_per_kid = 7
candy_per_kid = total_candy // total_kids
leftover_candy = total_candy % total_kids
if candy_per_kid < minimum_candy_per_kid:
candy_per_kid = minimum_candy_per_kid
leftover_candy += (total_kids * minimu... |
Mason has 56 comic books. He read 30% of them. If he wants to read the remaining books in the next 14 days, how many books does he need to read every day? | def solve() -> int:
books_total = 56
books_read = books_total * 0.3
books_remaining = books_total - books_read
days_remaining = 14
books_per_day = books_remaining / days_remaining
result = books_per_day
return result
|
Student: A clock gains 5 minutes every day. If it was correctly set yesterday, how many minutes will the clock be fast after 5 days? | def solve() -> int:
clock_gain = 5
days_passed = 5
minutes_fast = clock_gain * days_passed
result = minutes_fast
return result
|
Mike works as a waiter and receives $8/hour and $2 in tips per hour worked. If his tips are not taxable and 10% of his hourly wage is deducted as taxes, how much will he earn after taxes in a day of 6 hours of work? | def solve() -> int:
hourly_wage = 8
tips_per_hour = 2
hours_worked = 6
tax_rate = 0.1
gross_income = hourly_wage * hours_worked + tips_per_hour * hours_worked
taxes = gross_income * tax_rate
net_income = gross_income - taxes
result = net_income
return result
|
Student: Davey's arms are 1/5 of his total height, and his head is 1/4 of his total height. If Davey's height is 72 inches, calculate the length of his arms. | def solve() -> int:
arms_fraction = 1/5
head_fraction = 1/4
height = 72
head_length = head_fraction * height
arms_length = arms_fraction * height
result = arms_length
return result
|
At the rate they are currently saving, it will take Rachel and Nick 7 years to save for a downpayment on a vacation home. If the downpayment is $150000, what is the amount each person saves per month if they split their monthly savings equally? | def solve() -> int:
years = 7
downpayment = 150000
total_savings = downpayment / years
monthly_savings = total_savings / 12
amount_per_person = monthly_savings / 2
result = amount_per_person
return result
|
There are 24 vehicles in the parking lot and three times as many bicycles in the bike rack as there are vehicles in the parking lot. If the number of scooters in the sidewalk is one fourth as many as the combined total number of vehicles and bicycles, how many vehicles, bicycles, and scooters are there in total? | def solve() -> int:
vehicles = 24
bicycles = 3 * vehicles
scooters = 0.25 * (vehicles + bicycles)
total = vehicles + bicycles + scooters
result = total
return result
|
If Brian can eat 5 cookies in 10 minutes, how many cookies can he eat in 30 minutes? | def solve() -> int:
cookies_per_min = 5/10
total_cookies = cookies_per_min * 30
result = total_cookies
return result
|
Tom was organizing a charity drive and was collecting blankets to donate. He collected 50 blankets himself and his neighbor gave him 35 more. His sister gave him one-fourth the number of blankets that his neighbor gave him. His friend then gave him 15 blankets more than the total number Tom collected. How many blankets... | def solve() -> int:
tom_collected = 50
tom_collected += 35
sister_gave = 35 / 4
tom_collected += sister_gave
total_collected = tom_collected + 15
result = total_collected
return result
|
Student: Karen has twice as many pencils as James, if Karen has 24 pencils, how many does James have? | def solve() -> int:
karen_pencils = 24
james_pencils = karen_pencils / 2
result = james_pencils
return result
|
Student: Ken and Mark work at the Widget Factory, assembling Widgets. Ken can assemble 1 widget every 10 minutes while Mark can assemble 1 widget every 15 minutes. If they have been working together for 2 hours and completed 72 Widgets, how long has Mark been helping out? | def solve() -> int:
ken_rate = 10
mark_rate = 15
total_time = 2 * 60
total_widgets = 72
ken_widgets = total_time // ken_rate
mark_widgets = total_widgets - ken_widgets
mark_time = mark_widgets * mark_rate
result = mark_time
return result
|
A map of a park is drawn to a scale of 1:5000. If the distance between two landmarks on the map is 3 inches, what is the actual distance in the park, in feet? | def solve() -> int:
scale = 5000
map_distance = 3
actual_distance = map_distance * scale / 12
result = actual_distance
return result
|
Javier earns a 10% commission on every book he sells. He sells 8 hardcover books that cost $25 each, 10 paperback books that cost $15 each, and 12 magazines that cost $5 each. How much commission does Javier earn? | def solve() -> int:
hardcover_cost = 8 * 25
paperback_cost = 10 * 15
magazine_cost = 12 * 5
total_sales = hardcover_cost + paperback_cost + magazine_cost
commission = total_sales * 0.1
result = commission
return result
|
A recipe for chocolate cake calls for 2 cups of sugar and 3 eggs. If we need to make 5 cakes, how much sugar do we need in total? | def solve() -> int:
sugar_per_cake = 2
eggs_per_cake = 3
num_cakes = 5
total_sugar_needed = sugar_per_cake * num_cakes
result = total_sugar_needed
return result
|
Michael wants to climb a mountain that is 72 miles away. He knows that every day he trains, he can climb twice as high as the previous day. If he can climb 3 miles on the first day of training, how many days should he train before attempting to climb the mountain? | def solve() -> int:
distance_to_mountain = 72
climbed_distance = 0
training_distance = 3
days_of_training = 0
while climbed_distance < distance_to_mountain:
climbed_distance += training_distance
training_distance *= 2
days_of_training += 1
result = days_of_train... |
Student: A worker earns $10 per hour. If he worked 7.5 hours on Monday and 8.25 hours on Tuesday, how much did he earn in total? | def solve() -> int:
hourly_wage = 10
hours_worked_monday = 7.5
hours_worked_tuesday = 8.25
total_hours_worked = hours_worked_monday + hours_worked_tuesday
total_earnings = total_hours_worked * hourly_wage
result = total_earnings
return result
|
June has a total of 36 coins, made up of dimes and quarters. The total value of her coins is $6.90. How many coins of each type does June have? | def solve() -> int:
total_coins = 36
total_value = 6.9
value_dime = 0.1
value_quarter = 0.25
quarters = (total_value - value_dime * (dimes := total_coins // 2)) / value_quarter
result = (dimes, quarters)
return result
|
Timmy can paint a wall two times as fast as Tommy, who with a time of 3 hours is one-fourth as fast a painter as Terry. If Terry can paint the wall in 12 hours, what is the total number of hours it would take for Timmy, Tommy, and Terry to paint the wall together? | def solve() -> int:
terry_time = 12
tommy_time = terry_time * 4
timmy_time = tommy_time / 2
total_time = 1 / (1/terry_time + 1/tommy_time + 1/timmy_time)
result = total_time
return result
|
Student: A tank can hold 500 gallons of water. If it is currently 90% full, how many more gallons can it hold? | def solve() -> int:
tank_capacity = 500
percent_full = 0.9
current_amount = tank_capacity * percent_full
remaining_capacity = tank_capacity - current_amount
additional_capacity = tank_capacity - remaining_capacity
result = additional_capacity
return result
|
A toy shop charges $17 for a toy car. How much money will they make if they sell 8 toy cars? | def solve() -> int:
total_toy_cars = 8
toy_car_price = 17
total_toy_cars_cost = total_toy_cars * toy_car_price
result = total_toy_cars_cost
return result
|
Ann is shopping at a specialized store for school supplies. She needs to buy 5 notebooks, 7 rulers, and 3 pencil sharpeners for her classroom. Each notebook costs $2, each ruler cost $1, and each pencil sharpener costs $3. How much does Ann need to pay for all the items? | def solve() -> int:
total = 0
total += 5 * 2
total += 7 * 1
total += 3 * 3
result = total
return result
|
Alex wants to make a protein shake that contains 40g of protein. If his protein powder contains 25% of protein per scoop and each scoop contains 20g, how many scoops of protein powder does he need to make the protein shake he wants? | def solve() -> int:
protein_per_scoop = 0.25 * 20
scoops_needed = 40 / protein_per_scoop
result = scoops_needed
return result
|
Madison is in charge of building a new shopping mall by referencing an old one that had 500 stores, 50 restaurants, 20 cinemas, and 2 parking garages. If the new mall should have double the number of stores, half as many restaurants, 30 more cinemas, and 3 more parking garages, what is the total number of facilities re... | def solve() -> int:
old_stores = 500
old_restaurants = 50
old_cinemas = 20
old_parking_garages = 2
new_stores = old_stores * 2
new_restaurants = old_restaurants / 2
new_cinemas = old_cinemas + 30
new_parking_garages = old_parking_garages + 3
total_facilities = new_stores + ... |
If David brings 150 balloons for a birthday party, and there are 25 guests including him, his parents, and two party assistants, how many balloons will be left after he gives one to each guest and 20 to the remaining ones? | def solve() -> int:
balloons = 150
guests = 25
remaining = balloons - guests
remaining -= 1
remaining -= 2
remaining -= 2
remaining -= 20
result = remaining
return result
|
Mary has 35 stickers and she wants to give away three-fourths of her stickers to her friends. Tom has 25 stickers and he wants to give away half of his stickers to his cousins. How many stickers do they both have left? | def solve() -> int:
mary_stickers = 35
tom_stickers = 25
mary_given_stickers = (3/4) * mary_stickers
mary_remaining_stickers = mary_stickers - mary_given_stickers
tom_given_stickers = (1/2) * tom_stickers
tom_remaining_stickers = tom_stickers - tom_given_stickers
total_remaini... |
Mrs. Brown bought some fruits from the market. She spent $15 on fruits. Her son spent a sixth of what she spent. If Mrs. Brown had $28 left, how much money, in dollars, did she have initially? | def solve() -> int:
x = 15 + 2.5 + 28
result = x
return result
|
A marathon is 26.2 miles long. Karen and her friend ran 1/6 of the total distance, taking 40 minutes to do so. They then stopped for a water break for 10 minutes before continuing to run the rest of the marathon at the same pace. How long did it take them to finish the entire marathon? | def solve() -> int:
total_distance = 26.2
distance_covered = total_distance * (1/6)
time_taken = 40
time_taken += 10
remaining_distance = total_distance - distance_covered
time_taken += (remaining_distance / distance_covered) * time_taken
result = time_taken
return result
|
If a box contains 24 pencils, and each student in a class needs 2 pencils, how many students can be given pencils from this box? | def solve() -> int:
num_of_pencils = 24
pencils_per_student = 2
num_of_students = num_of_pencils / pencils_per_student
result = num_of_students
return result
|
Student: The hypotenuse of a right triangle is 17 cm, and one of its legs is 15 cm long. What is the length of the other leg? | def solve() -> int:
hypotenuse = 17
leg1 = 15
leg2 = (hypotenuse**2 - leg1**2)**0.5
result = leg2
return result
|
Emily's softball team is down by 15 runs in the final inning of their game. Emily hits 2 home runs and 3 singles. The other team only scores 2 runs in that inning. How many runs does Emily's team lose by at the end of the game? | def solve() -> int:
initial_deficit = 15
emily_home_runs = 2
emily_singles = 3
opponent_runs = 2
emily_runs = emily_home_runs * 4 + emily_singles
final_deficit = initial_deficit - emily_runs + opponent_runs
result = final_deficit
return result
|
Emma knits scarves using 5 balls of yarn and sells them for $30. A sweater requires 3 times as much yarn and sells for $120. If Emma has 30 balls of yarn, how much more money can she earn by knitting sweaters instead of scarves? | def solve() -> int:
balls_of_yarn_scarves = 5
price_scarves = 30
balls_of_yarn_sweater = 3 * balls_of_yarn_scarves
price_sweater = 120
total_balls_of_yarn = 30
scarves = total_balls_of_yarn // balls_of_yarn_scarves
sweaters = total_balls_of_yarn // balls_of_yarn_sweater
... |
If x+y=10 and 3x-4y=2, what is the value of x? | def solve() -> int:
y = 4
x = (4*y+2)/3
result = x
return result
|
If 6 workers can complete a task in 10 days, how many days would it take 4 workers to complete the task? | def solve() -> int:
days_taken = 15
result = days_taken
return result
|
Angel wanted to buy a magazine for $4.75. She only has $5. She also has a coupon that will discount the magazine by 25 percent. How much money will Angel have left after she buys the magazine? | def solve() -> int:
given_amount = 5
cost_magazine = 4.75
discount_percent = 0.25
discount_amount = cost_magazine * discount_percent
total_cost = cost_magazine - discount_amount
money_left = given_amount - total_cost
result = money_left
return r... |
A store has 100 notepads. Every day 2 notepads are sold for 9 days. How many notepads will be left in the store? | def solve() -> int:
notepads_sold_per_day = 2
days = 9
initial_notepads = 100
total_notepads_sold = notepads_sold_per_day * days
remaining_notepads = initial_notepads - total_notepads_sold
result = remaining_notepads
return result
|
Maria has a flower shop and sells bouquets for $25 each. A package of roses costs $15 and can make 5 bouquets. If Maria wants to make a $200 profit, how many bouquets does she need to sell? | def solve() -> int:
roses_cost = 15
bouquet_cost = 25
roses_per_package = 5
desired_profit = 200
roses_needed = desired_profit / (bouquet_cost - roses_cost / roses_per_package)
bouquets_needed = roses_needed / roses_per_package
result = bouquets_needed
return result
|
John invests $100,000 in a startup that grows by 50%. What is his profit if he sells his stake in the company? | def solve() -> int:
investment = 100000
growth_rate = 0.5
profit = investment * growth_rate
result = profit
return result
|
Company A has 250 employees. If the ratio of the number of women to the number of men is 5 to 3, how many men are in the company? | def solve() -> int:
w_m_ratio = 5/3
num_employees = 250
num_men = num_employees / (1 + w_m_ratio)
result = num_men
return result
|
In the last game of the baseball season, Max hit two home runs. His teammate has hit triple the number of home runs as Max hit in the last match in each game he's played in each of the six seasons he's been on the team. Each season has 50 games. What is the total number of home runs the teammates have hit between them ... | def solve() -> int:
max_home_runs = 90
teammate_home_runs_per_game = max_home_runs / 2
games_per_season = 50
seasons = 6
teammate_total_home_runs = teammate_home_runs_per_game * games_per_season * seasons
total_home_runs = max_home_runs + teammate_total_home_runs
result = total_hom... |
Student: A container can hold 16 liters of water. If the container is 70% full, how many liters of water are in the container? | def solve() -> int:
container_capacity = 16
percent_full = 0.7
amount_of_water = container_capacity * percent_full
result = amount_of_water
return result
|
Mia and Ethan have $72 altogether. Ethan owns 2/3 of the amount. Mia realized that Ethan owed her $12, but she also owed Ethan $9. After settling their debts, how much money does Mia have? | def solve() -> int:
ethan_owns = 2/3 * 72
mia_owns = 72 - ethan_owns
mia_owns += 12
ethan_owns -= 12
ethan_owns += 9
mia_owns -= 9
result = mia_owns
return result
|
Student: There are 500 jellybeans in a jar. If you want to split them evenly between 10 people, how many jellybeans will each person get? | def solve() -> int:
jellybeans = 500
people = 10
each_person = jellybeans // people
remaining_jellybeans = jellybeans % people
result = each_person
return result
|
A cat owner fills the cat's bowl with 200g of cat food every 5 days. The cat eats 18g of food every day. How long will the cat food last? | def solve() -> int:
cat_food_per_day = 18
cat_food_amount = 200
days = cat_food_amount / (cat_food_per_day * 5)
result = days
return result
|
Sarah's age is 4 years less than double her brother's Liam age. Their combined age is 28. What is Liam's age? | def solve() -> int:
liam_age = (28 + 4) / 3
sarah_age = 2 * liam_age - 4
result = liam_age
return result
|
Alex likes to drink coffee every morning before work. He buys a $5.00 coffee every day and drinks it in a mug that holds 12 ounces of coffee. If a bag of coffee grounds costs $8.00 and makes 40 cups of coffee, how much money will Alex spend on coffee and coffee grounds over a 16-week period? Assume there are 5 workdays... | def solve() -> int:
cups_of_coffee = 16 * 5 * 12
bags_of_coffee = cups_of_coffee / 40
cost_of_coffee = 16 * 5 * 5
cost_of_coffee_grounds = bags_of_coffee * 8
total_cost = cost_of_coffee + cost_of_coffee_grounds
result = total_cost
return result
|
A backpack can hold up to 10 pounds. Kelly needs to carry 15 pounds of textbooks. How much weight will Kelly need to carry by hand? | def solve() -> int:
backpack_capacity = 10
textbook_weight = 15
weight_to_carry_by_hand = textbook_weight - backpack_capacity
result = weight_to_carry_by_hand
return result
|
Paul drives for 6 hours at a speed of 60 miles per hour. He then drives for one-third of the time at twice the speed. How many miles did he cover? | def solve() -> int:
time_1 = 6
speed_1 = 60
time_2 = time_1 / 3
speed_2 = 2 * speed_1
distance_1 = time_1 * speed_1
distance_2 = time_2 * speed_2
total_distance = distance_1 + distance_2
result = total_distance
return result
|
A car travels at a speed of 60 km/hour. How long will it take for the car to travel 180 kilometers? | def solve() -> int:
distance = 180
speed = 60
time = distance/speed
result = time
return result
|
A bakery sold 30 cakes on Monday. On Tuesday, they sold twice as many cakes as they did on Monday. On Wednesday, they sold one-fifth the number of cakes they did on Tuesday. How many cakes did the bakery sell by Wednesday? | def solve() -> int:
monday_cakes = 30
tuesday_cakes = monday_cakes * 2
wednesday_cakes = tuesday_cakes / 5
total_cakes = monday_cakes + tuesday_cakes + wednesday_cakes
result = total_cakes
return result
|
The hair salon has 10 hair dryers and 5 hair curlers. There are 15 customers in the salon, and 7 of them want their hair to be curled. How many more hair curlers should the salon provide so that every customer can curl? | def solve() -> int:
hair_dryers = 10
hair_curlers = 5
customers = 15
customers_want_curl = 7
curlers_needed = customers - customers_want_curl
curlers_needed -= hair_curlers
if curlers_needed > 0:
result = curlers_needed
else:
result = 0
return result
|
Jane runs 3 miles every morning and 2 miles every evening. If she runs for 5 days every week, how many miles does she run in a week in total? | def solve() -> int:
mornings = 3
evenings = 2
days = 5
total_miles = mornings + evenings
weekly_miles = total_miles * days
result = weekly_miles
return result
|
The length of a rectangular piece of land is twice its width. If the perimeter of the land is 60m, what are its length and width? | def solve() -> int:
perimeter = 60
width = perimeter/10
length = 2*width
result = (length, width)
return result
|
Student: If Jacob can write 400 words in 4 minutes and Katie can write 500 words in 5 minutes, how many words can they write together in 10 minutes? | def solve() -> int:
jacob_words_per_min = 400 / 4
katie_words_per_min = 500 / 5
total_words_per_min = jacob_words_per_min + katie_words_per_min
result = total_words_per_min * 10
return result
|
You have 4 cats, each cat needs 2 cans of cat food per day. If you buy 3 packs of cat food, each pack contains 12 cans of cat food, how many days will your cats be fed? | def solve() -> int:
num_cats = 4
can_per_cat_per_day = 2
cans_per_pack = 12
total_cans = cans_per_pack * 3
total_days = total_cans // (num_cats * can_per_cat_per_day)
result = total_days
return result
|
A company has 100 employees. If the ratio of male to female employees is 3:2, how many female employees does the company have? | def solve() -> int:
total_employees = 100
male_ratio = 3
female_ratio = 2
total_ratio = male_ratio + female_ratio
female_employees = total_employees * female_ratio / total_ratio
result = female_employees
return result
|
There are 36 students in a class. If 12 of them are girls, what percentage of the class are boys? | def solve() -> int:
total_students = 36
girls = 12
boys = total_students - girls
percentage_boys = (boys / total_students) * 100
result = percentage_boys
return result
|
There are 95 children on a playground, each with 4 balloons. How many balloons are there in total? | def solve() -> int:
n_children = 95
n_balloons_each_child = 4
result = n_children * n_balloons_each_child
return result
|
Mike can type four times faster than John. John can type one-third as fast as Jennifer can. And Jennifer can type twice as fast as Albert can. At what speed, in words per minute, can Mike type if Albert types at 90 words per minute? | def solve() -> int:
albert_speed = 90
jennifer_speed = 2 * albert_speed
john_speed = jennifer_speed / 3
mike_speed = 4 * john_speed
result = mike_speed
return result
|
Ben has 3 quarters, 5 dimes, 17 nickels, and 21 pennies. How much money does Ben have? | def solve() -> int:
quarters = 3
dimes = 5
nickels = 17
pennies = 21
total = quarters*0.25 + dimes*0.10 + nickels*0.05 + pennies*0.01
result = total
return result
|
Student: On Wednesday, the temperature outside was 11 degrees Celsius. On Saturday, it was 16 degrees Celsius. What was the difference in temperature between Wednesday and Saturday? | def solve() -> int:
wednesday_temp = 11
saturday_temp = 16
difference = saturday_temp - wednesday_temp
result = difference
return result
|
John deposited $500 in a bank account with a 4% annual interest rate compounded quarterly. What is the interest earned by John after 2 years? | def solve() -> int:
principal = 500
rate = 0.04
time = 2
compounding_periods = 4
amount = principal * (1 + rate/compounding_periods)**(compounding_periods*time)
interest_earned = amount - principal
result = interest_earned
return result
|
A water tank can hold 1000 liters of water. If it is already filled with 650 liters of water, how much more water is needed to fill the tank completely? | def solve() -> int:
tank_capacity = 1000
current_water = 650
water_needed = tank_capacity - current_water
result = water_needed
return result
|
Emma ate 6.5 cups of grapes yesterday and Kayla ate 7.5 cups of oranges yesterday. How many cups of fruits did the two girls eat yesterday? | def solve() -> int:
fruits1 = 6.5
fruits2 = 7.5
total_fruits = fruits1 + fruits2
result = total_fruits
return result
|
James bought 5 shirts for $25 each and 9 pants for $35 each. What was the total amount of money he spent? | def solve() -> int:
shirt_quantity = 5
shirt_price = 25
pants_quantity = 9
pants_price = 35
total_price = shirt_quantity * shirt_price + pants_quantity * pants_price
result = total_price
return result
|
A farmer has a total of 200 animals that consist of cows, pigs, and chickens. If the farmer counts the animals' legs and finds out there are a total of 536 legs. How many cows, pigs, and chickens does he own? | def solve() -> int:
total_animals = 200
total_legs = 536
num_chickens = (total_legs - (4*total_animals))/2
num_pigs = total_animals - num_chickens
num_cows = total_animals - num_pigs - num_chickens
result = (num_cows, num_pigs, num_chickens)
return result
|
Student: A pizza place offers a large pizza with 10 slices for $20. If a person orders 3 pizzas, how much will it cost? | def solve() -> int:
slices_per_pizza = 10
pizza_price = 20
pizzas_ordered = 3
total_cost = pizza_price * pizzas_ordered
result = total_cost
return result
|
John runs 5 miles every day. If he runs for 6 days, how many miles did he run in total? | def solve() -> int:
distance_per_day = 5
num_days = 6
total_distance = distance_per_day * num_days
result = total_distance
return result
|
John has 4 more books than Sarah, who has 10 books. How many books does John have? | def solve() -> int:
books_sarah = 10
books_john = books_sarah + 4
result = books_john
return result
|
Ryan wanted to buy a pair of sunglasses. One pair of sunglasses cost $40 and a protective case with a cleaning cloth would cost him an extra $10. He noticed on the website, they had a special offer for Memorial Day. From 2 pm to 5 pm, save 20% off sunglasses and 30% off any accessories. How much money could Ryan save b... | def solve() -> int:
sunglasses_cost = 40
case_cost = 10
sunglasses_discount = 0.2
accessories_discount = 0.3
sunglasses_discounted_price = sunglasses_cost - (sunglasses_cost * sunglasses_discount)
case_discounted_price = case_cost - (case_cost * accessories_discount)
total_dis... |
If Olivia runs 5 miles every day and burns a quarter of the calories that her friend Rachel burns in a week, how many miles does Rachel run in a week if they both run daily for a whole week? | def solve() -> int:
olivia_daily_distance = 5
rachel_weekly_distance = olivia_daily_distance * 7
result = rachel_weekly_distance
return result
|
A pizza place sells pizzas with a diameter of 16 inches. What is the area of the pizza? | def solve() -> int:
diameter = 16
radius = diameter / 2
area = 3.14 * (radius ** 2)
result = area
return result
|
The price of a product is $10 and it increases by 15% every year. What will be the price of the product in 5 years? | def solve() -> int:
price = 10
for i in range(5):
price *= 1.15
result = price
return result
|
Student: The ratio of pies to cakes at a party is 2:5. If there are 35 pies, how many cakes are there? | def solve() -> int:
pies = 35
ratio_pies = 2
ratio_cakes = 5
cakes = pies * ratio_cakes / ratio_pies
result = cakes
return result
|
A household spends $240 on groceries each month. The price of groceries increased by 30%. How much does the household spend on groceries after the price increase? | def solve() -> int:
increase = 240 * 0.3
new_price = 240 + increase
result = new_price
return result
|
Jerry bought 5 bags of chips. Each bag has 7 chips. How many chips did Jerry buy? | def solve() -> int:
bags = 5
chips = 7
result = bags * chips
return result
|
A box contains 3 red balls and 5 blue balls. If 2 balls are drawn randomly and not replaced, what is the probability that both balls are blue? | def solve() -> int:
total_balls = 8
blue_balls = 5
prob_first_blue = 5/8
prob_second_blue = 4/7
prob_both_blue = prob_first_blue * prob_second_blue
result = prob_both_blue
return result
|
A box contains 3 red balls and 5 blue balls. One ball is drawn at random. What is the probability of drawing a red ball? | def solve() -> int:
total_balls = 3 + 5
red_balls = 3
probability_of_red_ball = red_balls / total_balls
result = probability_of_red_ball
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.