question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Student: A farmer is selling 50 apples, 25 oranges, and 15 pears. If the apples cost 0.50$ each, oranges cost 0.75$ each, and pears cost 1.00$ each, what's the total money the farmer will make? | def solve() -> int:
num_apples = 50
num_oranges = 25
num_pears = 15
cost_apples = 0.50
cost_oranges = 0.75
cost_pears = 1.00
total_cost_apples = num_apples * cost_apples
total_cost_oranges = num_oranges * cost_oranges
total_cost_pears = num_pears * cost_pears
result = total_cost_... |
A rectangle has a length of 8 cm and a width of 5 cm. What is the area of the rectangle? | def solve() -> int:
length = 8
width = 5
area = length * width
result = area
return result
|
John carries 5 buckets of water, each of which contains 15 liters. How much water does John carry in total? | def solve() -> int:
number_of_buckets = 5
volume_each_bucket = 15
result = number_of_buckets * volume_each_bucket
return result
|
Connor has 36 pieces of candy. He gave 8 pieces of candy to 4 of his friends. How many pieces of candy does he have left? | def solve() -> int:
initial_candy = 36
given_to_friends = 8
number_of_friends = 4
candy_left = initial_candy - given_to_friends * number_of_friends
result = candy_left
return result
|
A supermarket has a total of 24 bottled water packs. If each pack contains 6 bottles, how many bottled waters are there in total? | def solve() -> int:
total_packs = 24
bottles_per_pack = 6
total_bottles = total_packs * bottles_per_pack
result = total_bottles
return result
|
Sarah can bike 12 times faster than Tim. Tim can bike at one-fourth the speed that Alice can. Alice can bike at five times faster than Mike. If Mike bikes at 3 miles per hour, what is Sarah's biking speed in miles per hour? | def solve() -> int:
mike_speed = 3
alice_speed = mike_speed * 5
tim_speed = alice_speed / 4
sarah_speed = tim_speed * 12
result = sarah_speed
return result
|
Alex goes to the urgent care center because he is feeling sick. The doctor prescribes him antibiotics which cost $50. There is also a $75 fee just for being seen by the doctor. Insurance covered 100%, how much did Alex pay? | def solve() -> int:
antibiotics_cost = 50
doctor_fee = 75
insurance_coverage = 1
total_cost = antibiotics_cost + doctor_fee
amount_paid = total_cost * (1 - insurance_coverage)
result = amount_paid
return result
|
Connor, Liam, and Levi are saving up to buy a video game console that costs $400. Connor has $30, Liam has quadruple Connor’s money, and Levi has triple Connor’s money. How much more money do they need to buy the console together? | def solve() -> int:
connor_money = 30
liam_money = connor_money * 4
levi_money = connor_money * 3
total_money = connor_money + liam_money + levi_money
console_cost = 400
money_needed = console_cost - total_money
result = money_needed
return result
|
A store sells bottles of water for $1.50 each. If John wants to buy 6 bottles of water, how much money will he need? | def solve() -> int:
price_per_bottle = 1.5
number_of_bottles = 6
total_price = price_per_bottle * number_of_bottles
result = total_price
return result
|
Zoe and Max are organizing a book drive for their school. They collected 680 books, and Zoe has already donated 265 books while Max donated 140 books. How many more books do they need to reach their goal of 500 books? | def solve() -> int:
total_books = 680
zoe_donated = 265
max_donated = 140
goal = 500
books_needed = goal - (zoe_donated + max_donated + total_books)
result = books_needed
return result
|
Alyssa invested $420 in stocks. Jordan deposited $35 more than three times as much as Alyssa. How much did Jordan deposit in the stocks? | def solve() -> int:
alyssa_investment = 420
jordan_investment = (3 * alyssa_investment) + 35
result = jordan_investment
return result
|
Peter's car can drive 300 miles on a full tank of gas. If Peter drives 75 miles each day, how many times per month does he need to fill up his gas tank? | def solve() -> int:
miles_per_month = 75 * 30
fill_ups_per_month = miles_per_month/300
result = fill_ups_per_month
return result
|
A box of chocolates contains 32 chocolates, of which 14 are milk chocolates. What percentage of chocolates in the box are milk chocolates? | def solve() -> int:
total_chocolates = 32
milk_chocolates = 14
percentage_milk_chocolates = (milk_chocolates / total_chocolates) * 100
result = percentage_milk_chocolates
return result
|
A flight attendant counted 60 passengers during the first leg. At the second stop, 20 people got off, and then, a double of the initial number of people boarded the plane. On the third stop, 45 people got off and 12 people got on. How many passengers are there on the plane currently? | def solve() -> int:
first_leg = 60
second_leg = first_leg - 20
third_leg = (first_leg * 2) - 20
fourth_leg = third_leg - 45 + 12
result = fourth_leg
return result
|
In a class of 32 students, 1/8 are absent, 2/3 of the students who are present are engaged in a project, and the rest are playing games. How many students are playing games? | def solve() -> int:
p = 32
a = p / 8
np = p - a
pg = np - (2/3 * np)
result = pg
return result
|
In a garden, there are 120 flowers. One-third of them are roses, and the remaining are equally divided between daisies and sunflowers. If a rose has 30 petals, a daisy has 5 petals, and a sunflower has twice as many petals as a daisy, how many petals are there in the garden? | def solve() -> int:
roses = 120 / 3
daisies = (120 - roses) / 2
sunflowers = (120 - roses) / 2
rose_petals = roses * 30
daisy_petals = daisies * 5
sunflower_petals = sunflowers * (2 * 5)
total_petals = rose_petals + daisy_petals + sunflower_petals
result = total_petals
... |
Sarah has $450. She wants to buy cupcakes at $6 each and give some of the cupcakes to her friends, Nicole and Emily. Nicole will receive 1/6 of the cupcakes, and Emily will receive 1/3 of the cupcakes. How many cupcakes does Sarah give to her friends? | def solve() -> int:
sarah_money = 450
cupcake_price = 6
total_cupcakes = sarah_money // cupcake_price
nicole_cupcakes = total_cupcakes // 6
emily_cupcakes = total_cupcakes // 3
cupcakes_given = nicole_cupcakes + emily_cupcakes
result = cupcakes_given
return result
|
-A certain flower shop sells roses and tulips. Due to a festival, the price of roses increased by 50%. After a week, the price of roses dropped by 20%. What is the current price of a rose if it was $1.5 before the festival? | def solve() -> int:
price_after_increase = 1.5 * 1.5
price_after_drop = price_after_increase * 0.8
result = price_after_drop
return result
|
Juan wanted to save money for his next vacation. He decided to set aside $300 at the beginning of every month and invest the money so that he could double his savings by the end of the year. How much money will he have saved after a year? | def solve() -> int:
money_saved = 300 * 12
investment_return = money_saved * 2
total_amount_saved = money_saved + investment_return
result = total_amount_saved
return result
|
A jar of candy has 60 pieces. Susie ate 1/4 of the jar, David ate 3/8 of the jar, and Peter ate 1/6 of the jar. How many pieces of candy are left in the jar? | def solve() -> int:
pieces_jar = 60
pieces_susie = 0.25 * pieces_jar
pieces_david = 0.375 * pieces_jar
pieces_peter = 1 / 6 * pieces_jar
pieces_left = pieces_jar - pieces_susie - pieces_david - pieces_peter
result = pieces_left
return result
|
If Austin can mow his lawn in one hour, how many hours does it take him to mow his lawn if it is 24m2? | def solve() -> int:
area = 24
mowing_speed = 1
hours_needed = area / mowing_speed
result = hours_needed
return result
|
Student: A recipe calls for 3/4 cup of sugar, but you only have 1/2 cup. How much more sugar do you need? | def solve() -> int:
sugar_needed = 3/4
sugar_have = 1/2
sugar_difference = sugar_needed - sugar_have
result = sugar_difference
return result
|
Sarah the teacher is buying supplies for her classroom. She needs to buy 12 boxes of markers, and each box contains 12 markers. If each marker costs $1, how much will Sarah spend on the markers? | def solve() -> int:
num_boxes = 12
markers_per_box = 12
cost_per_marker = 1
total_markers = num_boxes * markers_per_box
total_cost = total_markers * cost_per_marker
result = total_cost
return result
|
Student: Henry went to buy dinner and wanted to get steaks for $25/pound and chicken breasts for $14/pound. He wanted to buy 5 pounds of steaks and 3 pounds of chicken breasts. How much did his dinner cost in total? | def solve() -> int:
steaks_price = 25
chicken_price = 14
steaks_weight = 5
chicken_weight = 3
steaks_cost = steaks_price * steaks_weight
chicken_cost = chicken_price * chicken_weight
dinner_cost = steaks_cost + chicken_cost
result = dinner_cost
return result
|
Kylie went to a store and bought five items that cost $5 each. She paid with one fifty-dollar bill, one twenty-dollar bill, and one five-dollar bill. How much change did she get? | def solve() -> int:
item_price = 5
total_items = 5
paid_by_50_bill = 50
paid_by_20_bill = 20
paid_by_5_bill = 5
total_paid = paid_by_50_bill + paid_by_20_bill + paid_by_5_bill
total_cost = item_price * total_items
change = total_paid - total_cost
result = change
return result
|
Jackson reads for 25 minutes twice a day. How many hours does he spend reading per week? | def solve() -> int:
minutes_per_day = 25 * 2
minutes_per_week = minutes_per_day * 7
hours_per_week = minutes_per_week / 60
result = hours_per_week
return result
|
Mary is buying books for her bookstore. She ordered 500 books but as they arrived, she noticed that 20 of them had pages missing. She sold 10% of the remaining books on the first day and displayed 50% of the remaining books on shelves. How many books are still left? | def solve() -> int:
books = 500 - 20
books = books * 0.9
books = books * 0.5
result = books
return result
|
Sam is saving money for a new bike. He earns $10 every week by doing chores and $5 every month by recycling cans. He also spends $3 every week on candy and $7 every month on movie tickets. How much money will he have after 6 months? | def solve() -> int:
weekly_earn = 10
monthly_earn = 5
weekly_spend = 3
monthly_spend = 7
weekly_net = weekly_earn - weekly_spend
monthly_net = monthly_earn - monthly_spend
total_money = weekly_net * 24 + monthly_net * 6
result = total_money
return result
|
A grocery store sells 3 types of oil - olive oil for $10, vegetable oil for $7, and canola oil for $8. If a customer buys 2 bottles of olive oil, 3 bottles of vegetable oil, and 4 bottles of canola oil, what is their total bill? | def solve() -> int:
olive_oil = 2*10
vegetable_oil = 3*7
canola_oil = 4*8
total_bill = olive_oil + vegetable_oil + canola_oil
result = total_bill
return result
|
Kate tosses a rubber ball off a 5-foot tall building. After each bounce, the ball bounces to 2/5 the height from which it started. How high does the ball bounce off its fourth bounce? | def solve() -> int:
start = 5
step = 2/5
bounce = 4
result = start * pow(step, bounce - 1)
return result
|
Nikki had 5600 strawberries. She distributed 10 strawberries to each of her 27 friends. How many strawberries does Nikki have left? | def solve() -> int:
num_strawberries = 5600
num_friends = 27
num_per_friend = 10
nikki_strawberries_left = num_strawberries - (num_friends * num_per_friend)
result = nikki_strawberries_left
return result
|
In a class of 35 students, only 10 passed the exam. What percentage of students failed the exam? | def solve() -> int:
total_students = 35
passed = 10
failed = total_students - passed
percentage_failed = (failed / total_students) * 100
result = percentage_failed
return result
|
Mia is a tailor. She can sew a shirt with 1 meter of fabric in 15 minutes, a skirt with 2 meters of fabric in 25 minutes, and a dress with 3 meters of fabric in 35 minutes. How many minutes will it take her to sew 12 shirts, 10 skirts and 8 dresses? | def solve() -> int:
shirt_time = 12 * 15
skirt_time = 10 * 25
dress_time = 8 * 35
total_time = shirt_time + skirt_time + dress_time
result = total_time
return result
|
The perimeter of a square is 40 cm. What is the area of the square? | def solve() -> int:
perimeter = 40
side_length = perimeter / 4
area = side_length**2
result = area
return result
|
Sarah and Maria are baking cakes for a fundraiser. Sarah baked twice the number of cakes that Maria did. If Maria baked 12 cakes, how many cakes did Sarah bake? | def solve() -> int:
sarah_cakes = 2*12
result = sarah_cakes
return result
|
Mason has 8 identical toy cars. He wants to share them equally among him and 3 of his friends. How many cars will each person get? | def solve() -> int:
total_cars = 8
total_people = 4
cars_per_person = total_cars/total_people
result = cars_per_person
return result
|
Rachel had 20 marbles in her collection. She gave away 1/5 of them to a friend and then bought 15 more. How many marbles does Rachel have now? | def solve() -> int:
marbles = 20
given_away = marbles / 5
marbles -= given_away
marbles += 15
result = marbles
return result
|
Student: Emma has 24 cupcakes and wants to divide them equally among her friends. She invites 6 friends to her party, but 2 of them cancel at the last minute. How many cupcakes does each friend get? | def solve() -> int:
cupcakes = 24
friends = 6
cancelled_friends = 2
attending_friends = friends - cancelled_friends
cupcakes_per_friend = cupcakes // attending_friends
result = cupcakes_per_friend
return result
|
-Use print() to print out the answer in **every single step** of the program instead of just a final answer. Adam is making cookies. If he uses 600 g of flour and 250 g of chocolate chips, how many 50 g cookies can he make? | def solve() -> int:
mixture_mass = 600 + 250
number_of_cookies = mixture_mass / 50
result = number_of_cookies
return result
|
A rectangle has a length that is twice its width. If the width is 5 inches, what is the length of the rectangle? | def solve() -> int:
width = 5
length = 2*width
result = length
return result
|
A store sells 2 kinds of pens, red pens for $2 each, and blue pens for $3 each. If they sold 5 red pens and 7 blue pens, what is the total revenue? | def solve() -> int:
red_pens = 2
blue_pens = 3
total_revenue = (red_pens*5) + (blue_pens*7)
result = total_revenue
return result
|
Student: To buy a 60 piece puzzle for her son, Susan bought 6 packs of 8 pieces each. How many pieces did Susan buy? | def solve() -> int:
pack_size = 8
num_packs = 6
total_pieces = pack_size * num_packs
result = total_pieces
return result
|
A car travels at a speed of 60 km/h for the first half of the journey and then increases its speed to 80 km/h for the rest of the journey. If the total distance covered is 320 km, how long did the journey take in hours? | def solve() -> int:
total_distance = 320
speed1 = 60
speed2 = 80
distance1 = total_distance/2
time1 = distance1/speed1
distance2 = total_distance - distance1
time2 = distance2/speed2
total_time = time1 + time2
result = total_time
return result
|
A farmer planted 15 rows of carrots. Each row had 24 carrots. He harvested half of the carrots and gave 20% of them to his neighbors. How many carrots did he keep for himself? | def solve() -> int:
carrots_planted = 15 * 24
carrots_harvested = carrots_planted / 2
carrots_kept = carrots_harvested * 0.8
result = carrots_kept
return result
|
Student: Alex bought 7 packs of colored pencils, each pack contains 12 pencils. How many pencils does Alex have in total? | def solve() -> int:
packs_of_colored_pencils = 7
pencils_per_pack = 12
total_pencils = packs_of_colored_pencils * pencils_per_pack
result = total_pencils
return result
|
The construction company received a certain amount for Building A and twice of that amount for Building B. What is the total amount they received? | def solve() -> int:
building_A = 450000
building_B = 680000
building_A_cost = building_A
building_B_cost = building_B * 2
total_amount = building_A_cost + building_B_cost
result = total_amount
return result
|
Lisa had $200. She gambled $50 and won $30. How much money does she have now? | def solve() -> int:
initial_money = 200
gamble_cost = 50
gamble_winnings = 30
remaining_money = initial_money - gamble_cost + gamble_winnings
result = remaining_money
return result
|
If the cost of a pencil is twice the cost of a pen and the cost of a pencil is $4, what is the cost of a pen? | def solve() -> int:
pencil_cost = 4
pen_cost = pencil_cost / 2
result = pen_cost
return result
|
Christopher uses five gallons of gas each day to drive to work. If the gas tank of his car has a capacity of 20 gallons, how many days will it take for his car to run out of gas? | def solve() -> int:
gas_used_per_day = 5
gas_tank_capacity = 20
days_to_run_out_of_gas = gas_tank_capacity / gas_used_per_day
result = days_to_run_out_of_gas
return result
|
In a certain town of 200 people, 3 of them drink coffee 3 times a day. All others drink coffee once a day. Assuming that each cup of coffee costs $2, how much money, in dollars, will be spent on coffee per month? | def solve() -> int:
coffee_cups_3_ppl = 3 * 3 * 30
coffee_cups_others = 197 * 30
total_coffees = coffee_cups_3_ppl + coffee_cups_others
total_cost = total_coffees * 2
result = total_cost
return result
|
A farmer has 100 chickens, he sells 20 to his neighbor and then buys 10 more. Half of the chickens are baby chickens. How many baby chickens does the farmer have now? | def solve() -> int:
chickens = 100
chickens -= 20
chickens += 10
baby_chickens = chickens / 2
result = baby_chickens
return result
|
Olivia has to take a 1-hour train to work and back home each day. On the weekends, she spends 2.5 hours each day driving her family to different destinations. How many hours does she spend driving per week? | def solve() -> int:
train_to_work = 1
train_back_home = 1
weekend_driving = 2.5
daily_driving = train_to_work + train_back_home + weekend_driving
weekly_driving = daily_driving * 7
result = weekly_driving
return result
|
A 1200 m long wire is cut into 80 pieces. 70 of the pieces are equally sized and the remaining pieces are 25 m each. What is the length of each of the equal pieces in centimeters? | def solve() -> int:
wire_length = 1200
num_pieces = 80
short_pieces = 10
long_pieces = num_pieces - short_pieces
long_piece_length = 25
total_long_length = long_pieces * long_piece_length
equal_piece_length = (wire_length - total_long_length) / short_pieces
equal_piece_length_cm = e... |
In a store there were 16 toy cars each costing $2, one toy plane that costs $7 more than the cost of two toy cars, and a toy helicopter that costs $4 less than the cost of three toy cars. What is the total cost of all the toys together? | def solve() -> int:
toy_cars = 16
toy_car_cost = 2
toy_plane_cost = 2 * toy_car_cost + 7
toy_helicopter_cost = 3 * toy_car_cost - 4
total_cost = toy_cars * toy_car_cost + toy_plane_cost + toy_helicopter_cost
result = total_cost
return result
|
Student: In a card game, David's score is 28 points. He has 7 points less than Emily, who has the same score as Frank. What is the product of their scores, assuming they are the only players? | def solve() -> int:
david_score = 28
emily_score = 0
frank_score = 0
emily_score = david_score + 7
frank_score = emily_score
result = david_score * emily_score * frank_score
return result
|
John weighs 70 kg and his height is 1.75 meters. What is his body mass index (BMI)? | def solve() -> int:
weight = 70
height = 1.75
bmi = weight / (height ** 2)
result = round(bmi, 2)
return result
|
Rachel is going on a road trip and needs to fill up her gas tank. Her car has a 12 gallon tank and gets 20 miles to the gallon. Gas currently costs $2.50 per gallon. If she is starting with a full tank and needs to travel 300 miles, how much will it cost her for gas? | def solve() -> int:
tank_size = 12
miles_per_gallon = 20
distance_to_travel = 300
gallons_needed = distance_to_travel / miles_per_gallon
total_cost = gallons_needed * 2.50
result = total_cost
return result
|
Mr. Henry is a wheat farmer with 100 acres of land producing 1000 bushels of wheat every month. The expenses for maintenance of the wheat farm and purchase of fertilizers is $5000 per month. Calculate his total income in April if he sells 1 bushel of wheat at $7.20. | def solve() -> int:
acres_of_land = 100
bushels_per_month = 1000
expenses_per_month = 5000
price_per_bushel = 7.20
total_income = bushels_per_month * price_per_bushel
total_expenses = expenses_per_month
net_income = total_income - total_expenses
result = net_income * 4
... |
In 12 years, John will be five times older than Victoria. If Victoria is currently 8 years old, what is the sum of their ages now? | def solve() -> int:
john_age = 8 + 12
victoria_age = 8
sum_of_ages = john_age + victoria_age
result = sum_of_ages
return result
|
There were 85 students in a class. 21 students went to the library and the rest went to the music room. How many students went to the music room? | def solve() -> int:
total_stu = 85
library_stu = 21
music_stu = total_stu - library_stu
result = music_stu
return result
|
Alice has some books, and some are borrowed. One sixth of Alice's books are borrowed, and Bob has 8 times as many borrowed books as Alice. If Bob has 24 borrowed books, how many books does Alice have? | def solve() -> int:
alice_borrowed = 24 / 8
alice_books = alice_borrowed * 6
result = alice_books
return result
|
Student: Sam buys a pack of 24 juice boxes for a party. He gives six juice boxes to his friend and then distributes the rest equally among eight guests. How many juice boxes does each guest receive? | def solve() -> int:
juice_boxes = 24
juice_boxes -= 6
juice_boxes_per_guest = juice_boxes / 8
result = juice_boxes_per_guest
return result
|
ix students shared $270 equally. How much did each student receive? | def solve() -> int:
def dollars_student(x):
result = x/6
return result
dollars = dollars_student(270)
result = dollars
return result
|
A bookstore offers a discount of 20% on all books. If a book has an original price of $25, what is the discounted price? | def solve() -> int:
original_price = 25
discount = 0.2
discounted_price = original_price - (original_price * discount)
result = discounted_price
return result
|
Kelly spent $250.00 on home decor. 5 lamps cost $150.00 and a throw pillow cost 1/4 that much. She also spent $20.00 on candles, and the rest of the money on rugs. How much money did she spend on rugs? | def solve() -> int:
lamps_cost = 150.00
throw_pillow_cost = lamps_cost / 4
candles_cost = 20.00
total_cost = 250.00
rugs_cost = total_cost - (lamps_cost * 5) - throw_pillow_cost - candles_cost
result = rugs_cost
return result
|
Jacob is looking to purchase a new gaming console. It costs $600 in cash or $200 and $40 per month for the next year. How much money can he save if he chooses to pay in full? | def solve() -> int:
cash_price = 600
monthly_price = 40
months = 12
total_price = cash_price
monthly_payment = monthly_price * months
savings = monthly_payment - total_price
result = savings
return result
|
Student: James ran for 5 miles in 40 minutes. What is his average speed in miles per hour? | def solve() -> int:
distance = 5
time = 40
time_in_hours = time / 60
average_speed = distance / time_in_hours
result = average_speed
return result
|
Lila's gecko, Spot, loves hiding and exploring her terrarium filled with plants and toys. On Monday, Spot had 7 toys. On Tuesday, Spot lost 3 toys and Lila bought her 4 new ones. On Wednesday, all of Spot's toys vanished. If Lila found all the lost and new toys, how many toys would SpotAt the Farm, goats are fed three ... | def solve() -> int:
toys_monday = 7
toys_tuesday = toys_monday - 3 + 4
toys_wednesday = toys_tuesday
total_toys = toys_monday + toys_tuesday + toys_wednesday
result = total_toys
return result
|
Student: An amusement park has a staff of 15 people. 5 of them work on rides and work 7 hours a day, 5 days a week, for 6 weeks. 7 of them work at food stands and work 6 hours a day, 4 days a week, for 5 weeks. The remaining 3 work as cleaners and work 4 hours a day, 7 days a week, for 4 weeks. Ride attendants are paid... | def solve() -> int:
ride_staff = 5
ride_hours = 7
ride_days = 5
ride_weeks = 6
ride_wage = 11
food_staff = 7
food_hours = 6
food_days = 4
food_weeks = 5
food_wage = 9
clean_staff = 3
clean_hours = 4
clean_days = 7
clean_weeks = 4
clean_wage = 8
ride_total_... |
Sofia is tasked with making 4 copies of a worksheet for 16 students. The worksheet is 24 pages long. How many pages will Sofia copy in total? | def solve() -> int:
num_copies = 4
num_students = 16
num_pages = 24
total_pages = num_copies * num_students * num_pages
result = total_pages
return result
|
Tom used to spend 15% of his monthly income on groceries. After losing his job and taking up a lower-paying job, he now spends 25% of his monthly income on groceries. If his current income is $2,000, what was his previous monthly income? | def solve() -> int:
current_income = 2000
current_percentage = 0.25
previous_percentage = 0.15
grocery_spending = current_income * current_percentage
previous_income = grocery_spending / previous_percentage
result = previous_income
return result
|
If it takes 15 minutes for Mark to wash 2 windows, how long would it take him to wash 10 windows? | def solve() -> int:
windows_to_wash = 10
windows_washed_in_time = 2
time_for_windows_wash = 15
time_to_wash_all_windows = ((windows_to_wash / windows_washed_in_time) * time_for_windows_wash)
result = time_to_wash_all_windows
return result
|
Rachel is knitting scarves for her friends. For every four rows she knits, she decides to undo one row because she doesn't like the texture. How many rows will she need to knit in order to complete a scarf that is 24 rows long? | def solve() -> int:
total_rows = 24
rows_to_undo = total_rows // 4
rows_to_knit = total_rows + rows_to_undo
result = rows_to_knit
return result
|
Student: A curling iron uses 0.6 kilowatts for 10 minutes. How many kilowatts does it consume if it is used for 2 hours and 30 minutes? | def solve() -> int:
power = 0.6
time_1 = 10
time_2 = 150
kwh_1 = power * (time_1/60)
kwh_2 = power * (time_2/60)
result = kwh_1 + kwh_2
return result
|
Student: **** At the beginning of the year, a fashion designer had 250 pieces in her store. If each week she gets 10 new pieces, how many pieces does she have by the end of the year? | def solve() -> int:
pieces_start = 250
pieces_weekly = 10
weeks_year = 52
pieces_end = pieces_start + pieces_weekly * weeks_year
result = pieces_end
return result
|
Rachel wants to buy a new phone that costs $600. She found a deal that allows her to pay in 12 monthly installments. Each installment is $60. How much money will Rachel pay each month? | def solve() -> int:
cost_of_phone = 600
number_of_installments = 12
cost_per_installment = cost_of_phone / number_of_installments
result = cost_per_installment
return result
|
A storage unit facility charges $60 a month for a small unit and $120 a month for a large unit. If a customer can fit all their belongings into a small unit, how much money will they save per year compared to renting a large unit? | def solve() -> int:
small_unit_cost = 60
large_unit_cost = 120
num_months = 12
total_savings_per_year = (large_unit_cost - small_unit_cost) * num_months
result = total_savings_per_year
return result
|
A farmer needs to plant seeds in a field to grow vegetables. The field is 30 square meters and each square meter requires 2 vegetable seeds. In addition to the seeds, the farmer needs to buy 5 bags of fertilizer to spread across the field. After planting the seeds, a quarter of them were eaten by birds. How many seeds ... | def solve() -> int:
field_area = 30
seeds_per_square_meter = 2
total_seeds_needed = field_area * seeds_per_square_meter
fertilizer_bags_needed = 5
eaten_seeds = total_seeds_needed / 4
seeds_to_replant = eaten_seeds
result = seeds_to_replant
return result
|
Laura is planning to redecorate her kitchen. She goes to a store that sells flooring and carpet. The kitchen is 10 feet long and 8 feet wide. The flooring costs $5 per square foot and carpet costs $3 per square foot. She wants to add a 1-foot-wide border of flooring around the kitchen. How much does it cost for Laura t... | def solve() -> int:
total_area = (10+2)*8
flooring_area = total_area - 80
carpet_cost = flooring_area * 3
result = carpet_cost
return result
|
A car dealership has 20 sedans, 10 SUVs, and 4 motorcycles on the lot. How many wheels are in the dealership? | def solve() -> int:
sedans = 20 * 4
suvs = 10 * 4
motorcycles = 4 * 2
result = sedans + suvs + motorcycles
result
return result
|
A store sells apples for $0.50 each and bananas for $0.70 each. Last week, the store sold 20 apples and 15 bananas for a total of $19.25. How much did the store receive per apple? | def solve() -> int:
apple_price = 0.5
banana_price = 0.7
total_apples = 20
total_bananas = 15
total_cost = 19.25
cost_apples = apple_price * total_apples
cost_bananas = banana_price * total_bananas
cost_per_fruit = (cost_apples + cost_bananas) / (total_apples + total_bananas)
result ... |
In a party, there were 30 guests of which 1/3 of the guests are women, 16 are men, and the rest are children. In the middle of the party, 1/4 of the women and 4 children left. How many people stayed? | def solve() -> int:
total_guests = 30
women = 1/3 * total_guests
men = 16
children = total_guests - women - men
women_left = 1/4 * women
children_left = 4
people_left = total_guests - (women_left + children_left)
result = people_left
result
return result
|
A credit card company charges a 20% interest rate annually on unpaid balances. Sarah has a balance of $1,000 on her card and wants to pay it off in one year. What is the minimum monthly payment she needs to make? | def solve() -> int:
interest_rate = 0.20
balance = 1000
months = 12
monthly_payment = balance/((1-(1+interest_rate/12)**(-months))*((interest_rate/12)))
result = monthly_payment
return result
|
There are 24 cookies and Sybil eats 14. Then 5 more people come and take 6 cookies each. How many cookies are left? | def solve() -> int:
cookies = 0
cookies = cookies + 24
cookies = cookies - 14
cookies = cookies - (5 * 6)
result = cookies
return result
|
A car travels 50 miles per hour. How long will it take to travel 150 miles? | def solve() -> int:
speed = 50
distance = 150
time_in_hours = distance / speed
result = time_in_hours
return result
|
arah has $125. She wants to buy some yogurt, which cost $5 each, and some pears, which cost $2 each. She wants to buy 9 yogurts and 8 pears. How much money, in dollars, does she have left? | def solve() -> int:
a = 5
b = 2
yogurt_num = 9
pear_num = 8
starting_money = 125
total_cost = yogurt_num * a + pear_num * b
left_money = starting_money - total_cost
result = left_money
return result
|
Some possible questions are: Mrs. Lee is baking cupcakes for her daughter's birthday party. She has 8 cups of flour, 6 eggs, and 4 cups of milk. Each batch of cupcakes requires 1 cup of flour, 3 eggs, and 1/2 cup of milk, and makes 12 cupcakes. How many cupcakes can she make in total? | def solve() -> int:
flour = 8
eggs = 6
milk = 4
batches_flour = flour // 1
batches_eggs = eggs // 3
batches_milk = milk // 0.5
batches = min(batches_flour, batches_eggs, batches_milk)
cupcakes = batches * 12
result = cupcakes
return result
|
Kim has a rectangular garden. The length of the garden is 7m and the width is 9m. What is the area of Kim's garden? | def solve() -> int:
length = 7
width = 9
area = length * width
result = area
return result
|
Jacob has a collection of 36 coins. He has 12 quarters, 8 dimes, 10 nickels, and 6 pennies. He decides to sort them into four equal piles. How much money does each pile have? | def solve() -> int:
total_value = 12 * 25 + 8 * 10 + 10 * 5 + 6 * 1
pile_value = total_value / 4
pile_dollars = pile_value / 100
result = pile_dollars
return result
|
The hypotenuse of a right-angle triangle has a length of 26 and one of its legs has a length of 10. What is the length of the other leg? | def solve() -> int:
other_leg_length = (26**2 - 10**2)**(1/2)
result = other_leg_length
return result
|
A train travels at a constant speed of 60 km/h for 2 hours, then speeds up to 80 km/h for 1.5 hours, then slows down to 40 km/h for 1 hour. How far does the train travel in total? | def solve() -> int:
speed_1 = 60
speed_2 = 80
speed_3 = 40
time_1 = 2
time_2 = 1.5
time_3 = 1
distance_1 = speed_1 * time_1
distance_2 = speed_2 * time_2
distance_3 = speed_3 * time_3
total_distance = distance_1 + distance_2 + distance_3
result = total_distance
return res... |
If yellow chips are 15% of the entire chips and the jar contains 45 chips, how many yellow chips are there? | def solve() -> int:
total_num_chips = 45
percent_yellow_chips = 0.15
num_yellow_chips = total_num_chips * percent_yellow_chips
result = num_yellow_chips
return result
|
A swimming pool has a length of 50 meters and an area of 4500 square meters. How many swimming pools of the same size would reach a width of 450 meters? | def solve() -> int:
length = 50
area = 4500
width = 450
one_pool_width = area / length
num_pools = width / one_pool_width
result = num_pools
return result
|
The Town Hall wants to distribute 300 food packages to accommodate 150 families. How many packages would be needed for 20% fewer families? | def solve() -> int:
families = 150
food_packages = 300
reduced_families = families - (families * 0.20)
packages_needed = (reduced_families / families) * food_packages
result = packages_needed
return result
|
A car traveled 210 miles in 3 hours. How long will it take to travel 350 miles at the same mph? | def solve() -> int:
distance_1 = 210
time_1 = 3
mph = distance_1 / time_1
distance_2 = 350
time_2 = distance_2 / mph
result = time_2
return result
|
Student: If a car can drive 200 miles with 16 gallons, how many miles can it make with 27 gallons? | def solve() -> int:
miles = 200
gallons = 16
add_gallons = 27
miles_27_gallons = miles * (add_gallons / gallons)
result = miles_27_gallons
return result
|
In a library, there are 100 books and three times as many magazines. Magazines make up 60% of all the reading material in the library. How many newspapers are there if they make up 5% of all the reading material? | def solve() -> int:
books = 100
magazines = 3 * books
total_reading_material = books + magazines
magazines_percentage = 60
newspapers_percentage = 5
magazines_reading_material = total_reading_material * magazines_percentage / 100
newspapers_reading_material = magazines_reading_material ... |
A factory produces a total of 1000 products each day. Out of these, 35% are defective. How many products are non-defective? | def solve() -> int:
total_products = 1000
defective_percentage = 35
defective_products = total_products * (defective_percentage/100)
non_defective_products = total_products - defective_products
result = non_defective_products
return result
|
A car dealership sells 50 cars every month. If they want to make $1,000,000 in an entire year, how much more money per month should they make selling cars? | def solve() -> int:
cars_per_month = 50
total_cars_per_year = cars_per_month * 12
target_income = 1000000
income_per_car = target_income / total_cars_per_year
result = income_per_car - 5000
return result
|
A store is having a 25% off sale. If an item originally costs $80, what is the sale price? | def solve() -> int:
full_price = 80
sale_price = full_price * 0.75
result = sale_price
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.