question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Student: Dorothy has a coupon for $1.00 off 7 cans of tuna. Each can of tuna costs $1.25. How much money will Dorothy save with her coupon? | def solve() -> int:
coupon_value = 1.00
num_cans = 7
price_per_can = 1.25
total_cost = num_cans * price_per_can
amount_saved = coupon_value * num_cans
total_cost_after_coupon = total_cost - amount_saved
result = total_cost_after_coupon
return result
|
A train travels at 60 kilometers per hour. How long will it take to travel a distance of 90 kilometers? | def solve() -> int:
distance = 90
speed = 60
time = distance / speed
result = time
return result
|
Richard is buying pellets for his fireplace. Each bag of pellets is 0.15 cubic feet. How many bags of pellets does he need to buy if his fireplace is 2.4 cubic feet? | def solve() -> int:
fireplace_volume = 2.4
volume_per_bag = 0.15
number_of_bags = fireplace_volume//volume_per_bag
result = number_of_bags
return result
|
Emma had an equal number of erasers and rulers. If she had 120 rulers and gave five rulers and 6 erasers to each of her five friends and kept the rest for herself, how many erasers and rulers did she have left? | def solve() -> int:
erasers = 120
rulers = 120
total_friends = 5
rulers_given = 5 * 5
erasers_given = 6 * 5
rulers_left = rulers - rulers_given
erasers_left = erasers - erasers_given
result = rulers_left + erasers_left
return result
|
Student: A farmer has 450 chickens and goats in total. Half of these animals are chickens. If the farmer sells 120 chickens and 50 goats, how many animals are left in the farm? | def solve() -> int:
total_animals = 450
chickens = total_animals // 2
goats = total_animals - chickens
chickens_sold = 120
goats_sold = 50
animals_left = total_animals - (chickens_sold + goats_sold)
result = animals_left
return result
|
arah is running a 5K race and runs at a pace of 8 minutes per mile. If a 5K is equivalent to 3.1 miles, how long does it take Sarah to complete the race? | def solve() -> int:
race_distance = 3.1
pace_per_mile = 8
total_time = race_distance * pace_per_mile
result = total_time
return result
|
Lily runs a toy store and sources her toys from a manufacturer. She adds a $7 surcharge on each toy and pays 11% in taxes from each sale. If a customer bought a teddy bear for $50, how much profit did Lily make? | def solve() -> int:
toy_price = 50
surcharge = 7
tax_rate = 0.11
total_cost = toy_price + surcharge
tax_amount = total_cost * tax_rate
profit = total_cost - tax_amount - toy_price
result = profit
return result
|
A store sells 5 pens for $3 while another store sells 7 pens for $4. If you want to buy 25 pens, which store will you choose and how much money would you save? | def solve() -> int:
price_per_pen1 = 3/5
price_per_pen2 = 4/7
total_cost1 = price_per_pen1 * 25
total_cost2 = price_per_pen2 * 25
savings = total_cost2 - total_cost1
chosen_store = "Store 1" if total_cost1<savings else "Store 2"
total_savings = round(savings,2)
result = (chosen_store, to... |
The baker wants to reward his employees with additional break time for completing a large order of cupcakes. Normally, the breaks are 10 minutes long. He offers one extra minute of break time for every 2 cupcakes baked. His employees baked a total of 200 cupcakes. How much extra break time will they get? | def solve() -> int:
total_cupcakes = 200
extra_break_time = total_cupcakes // 2
result = extra_break_time
return result
|
A television costs $250 and is now on a 15% discount. How much money will be saved if a customer buy this television? | def solve() -> int:
original_price = 250
discount = 15 / 100
saved_money = original_price * discount
result = round(saved_money, 2)
return result
|
Result: 25.5 Tyler wants to buy a t-shirt. The regular price is $20 but he has a coupon for 25% off. How much will he pay? | def solve() -> int:
discount = 20 * 0.25
final_price = 20 - discount
result = final_price
return result
|
ara is making 15 cupcakes and they need to be evenly distributed among 3 people. How many cupcakes will each person get? | def solve() -> int:
cupcakes_number = 15
people_number = 3
cupcakes_given = cupcakes_number/people_number
result = cupcakes_given
return result
|
A recipe calls for 0.75 cups of sugar to make 18 cookies. How many cups of sugar will be needed to make 72 cookies? | def solve() -> int:
cookies_given = 18
sugar_given = 0.75
cookies_needed = 72
sugar_needed = (cookies_needed / cookies_given) * sugar_given
result = sugar_needed
return result
|
If the cost of 10 pencils is equal to the cost of 4 pens, and the cost of 5 pens is equal to the cost of 2 notebooks, and the cost of a notebook is $10, how much is a pencil? | def solve() -> int:
num_pencils = 10
num_pens = 4
cost_notebook = 10
num_notebooks = 2
total_pens_cost = (num_pencils / num_pens) * cost_notebook * num_notebooks
cost_per_pencil = total_pens_cost / num_pencils
result = cost_per_pencil
return result
|
Student: If a line segment is 8 cm long, and you cut it into 4 equal pieces, how long is each piece? | def solve() -> int:
line_segment = 8
piece_length = line_segment / 4
result = piece_length
return result
|
Student: Lori sold 16 books in April and then she sold one fourth as many books in May. How many books did Lori sell altogether in April and May? | def solve() -> int:
books_april = 16
books_may = books_april / 4
books_total = books_april + books_may
result = books_total
return result
|
Thalisa has 50 pencils. She wants to give some to her friends, Karl and Wilson. Karl will receive 1/3 of the pencils, and Wilson will receive 1/4 of the pencils. How many pencils does Thalisa give to her friends? | def solve() -> int:
pencils_given_to_Karl = 50 * (1/3)
pencils_given_to_Wilson = 50 * (1/4)
total_pencils_given = pencils_given_to_Karl + pencils_given_to_Wilson
result = total_pencils_given
return result
|
A carton of juice has a volume of 1.8 liters. If the juice is to be poured equally into 6 cups, what is the volume of juice in each cup? Answer in milliliters. | def solve() -> int:
volume = 1.8 * 1000
cups = 6
juice_per_cup = volume / cups
result = juice_per_cup
return result
|
Thomas has a rectangular backyard that measures 10 meters by 8 meters. He wants to fence in the entire area. If fencing costs $20 per meter, how much will it cost him to fence in his backyard? | def solve() -> int:
perimeter = (10+8)*2
total_cost = perimeter * 20
result = total_cost
return result
|
A store is having a 25% off sale, plus an additional 10% off if you spend more than $50. Olivia buys a bag of clothes for $70. If each item normally costs $10, how many items are in the bag? | def solve() -> int:
original_price = 10
sale_discount = 25/100
total_items = 7
discount_threshold = 50
if total_items*original_price > discount_threshold:
total_price = total_items*original_price - (total_items*original_price*sale_discount) - (total_items*original_price*0.10)
else:
... |
Emily bought 6 times as many candies as Lily did. Lily bought four times the number of candies as Sarah did. If Sarah spent $15 on $0.75 candies, how many candies did Emily and Lily buy altogether? | def solve() -> int:
sarah_spent = 15
candy_price = 0.75
sarah_candies = sarah_spent / candy_price
lily_candies = 4 * sarah_candies
emily_candies = 6 * lily_candies
total_candies = lily_candies + emily_candies
result = total_candies
return result
|
Jeff rode his bike 10 miles, then turned around and rode back 1/4 of the distance he already went. How far did Jeff ride in total? | def solve() -> int:
distance_biked = 10
distance_biked_back = distance_biked * 0.25
total_distance = (distance_biked * 2) - distance_biked_back
result = total_distance
return result
|
If Lily is currently one-fourth the age of her uncle who is 40 years old, how many more years until Lily reaches the minimum age of being able to rent a car, which is 25? | def solve() -> int:
uncle_age = 40
lily_age = uncle_age / 4
minimum_rent_age = 25
years_to_rent_age = minimum_rent_age - lily_age
result = years_to_rent_age
return result
|
Emma saves $15 from each paycheck. In two months, how much money has she saved? | def solve() -> int:
savingamount = 15
paycheckscount = 2
totalsaving = savingamount * paycheckscount
result = totalsaving
return result
|
In a candy jar, there are 15 chocolate bars, 10 lollipops, 25 hard candies, 4 gummies, and a handful of jelly beans. Each chocolate bar is $2. A lollipop costs $1.50. Eight hard candies cost $2. A gummy is $2, and a third of the handful of jelly beans is $1. What is the total cost of the candy jar? | def solve() -> int:
chocolate_bars = 15
lollipops = 10
hard_candies = 25
gummies = 4
jelly_beans = 0
chocolate_bar_cost = 2
lollipop_cost = 1.50
hard_candy_cost = 2
gummy_cost = 2
jelly_bean_cost = 1/3
total_cost = (chocolate_bars * chocolate_bar_cost) + (lollipops ... |
A basketball team played 25 games and won 15 of them. What percentage of games did they win? | def solve() -> int:
total_games = 25
games_won = 15
percent_won = (games_won / total_games) * 100
result = percent_won
return result
|
Andrew has a new skateboard that is 3 feet long and 1.5 feet wide. He wants to customize it and needs to paint both sides. If each pint of paint costs $6 and covers an area of 1.5 square feet, how much will he spend on paint? | def solve() -> int:
length = 3
width = 1.5
area = length * width
paint_cost = 6
paint_coverage = 1.5
total_paint_needed = area * 2
total_paint_cost = total_paint_needed / paint_coverage * paint_cost
result = total_paint_cost
return result
|
Jayden had $15 in his wallet. He spent $4.50 on a sandwich and $2.75 on a drink at the cafeteria. How much did he have left? | def solve() -> int:
jayden = 15
sandwich = 4.5
drink = 2.75
jayden = jayden - sandwich - drink
result = jayden
return result
|
Karen drives a distance of 6 miles at a speed of 40 mph and another distance of 4 miles at a speed of 60 mph. What is her average speed during the entire trip? | def solve() -> int:
time_taken_for_first_distance = 6 / 40
time_taken_for_second_distance = 4 / 60
total_distance = 6 + 4
total_time = time_taken_for_first_distance + time_taken_for_second_distance
average_speed = total_distance / total_time
result = average_speed
return result
|
If a construction worker can lay 2 bricks in one minute and 5 concrete blocks in the same amount of time, and needs to lay 140 objects total, how many bricks does he lay? | def solve() -> int:
bricks_per_minute = 2
blocks_per_minute = 5
total_objects = 140
minutes = total_objects / (bricks_per_minute + blocks_per_minute)
bricks_laid = bricks_per_minute * minutes
result = bricks_laid
return result
|
Jill and Jack are playing with a ball. If Jill has 60 throws and Jack has 10 throws, how many throws do they have together? | def solve() -> int:
jills_throws = 60
jacks_throws = 10
total_throws = jills_throws + jacks_throws
result = total_throws
return result
|
Jackson was organizing his collection of 50 stamps in his album. During the day, he gave away some of the stamps and added 10 more stamps. By the end of the day, 15 stamps were left in his album. How many stamps did Jackson give away during the day? | def solve() -> int:
initial_stamps = 50
added_stamps = 10
left_stamps = 15
total_stamps = initial_stamps + added_stamps
given_away_stamps = total_stamps - left_stamps
result = given_away_stamps
return result
|
Max is a shuttle bus driver. He has to drive 45 miles to the destination and drive going back to the starting point on a different way that is 15 miles farther. If he can drive 1 mile for 2 minutes and stayed 1 hour at the destination, how long will it take the shuttle bus driver to do the entire tour in hours? | def solve() -> int:
distance_to_destination = 45
distance_back_to_start = distance_to_destination + 15
total_distance = distance_to_destination + distance_back_to_start
driving_time = total_distance * 2
total_time = driving_time + 60
result = total_time / 60
return result
|
Maxine went to the bookstore and bought two books for $25 each, and two pens for $5 each. If she got a 15% discount on her total purchases, how much did she end up spending? | def solve() -> int:
price_books = 25
price_pens = 5
discount = 0.15
subtotal = 2 * price_books + 2 * price_pens
total = (1-discount) * subtotal
result = total
return result
|
A bakery earns $90 every day from selling bread. How much do they earn in a month? | def solve() -> int:
daysInMonth = 30
monthlyEarning = daysInMonth * 90
result = monthlyEarning
return result
|
Maria Perez studied 3 hours each day for 6 days. She wants to study a total of 25 hours for her exam. How many hours does she need to study per day to reach her goal if she has 4 days left? | def solve() -> int:
hours_per_day = (25 - (3 * 6)) / 4
result = hours_per_day
return result
|
A rectangle has a length of 10 inches and a width of 5 inches. What is the perimeter of the rectangle? | def solve() -> int:
length =...
width =...
perimeter =...
result = perimeter
return result
|
A student has 140 school supplies. She wants to put them in boxes that can hold 10 items each. How many boxes does she need? | def solve() -> int:
box_num = 140//10
result = box_num
return result
|
Mark drove his car 300 miles on a trip. His car's average gas mileage is 25 miles per gallon. Gas costs $3 per gallon. How much will he spend in gas to complete his trip? | def solve() -> int:
miles_driven = 300
miles_per_gallon = 25
gas_price_per_gallon = 3
gallons_needed = miles_driven / miles_per_gallon
cost = gallons_needed * gas_price_per_gallon
result = cost
return result
|
Student: Bob runs a cafe. He sells 100 cups of coffee, 50 cups of tea, and 30 cups of hot chocolate every day. Each cup of coffee costs him $1 to make and he sells it for $2. Each cup of tea costs him $0.5 to make and he sells it for $1.5. Each cup of hot chocolate costs him $1.5 to make and he sells it for $3. He pays... | def solve() -> int:
coffee_cups = 100
tea_cups = 50
hot_chocolate_cups = 30
coffee_cost = 1
coffee_price = 2
tea_cost = 0.5
tea_price = 1.5
hot_chocolate_cost = 1.5
hot_chocolate_price = 3
rent = 500
utilities = 300
wages = 1000
total_cost = (coffee_cups * coffee_cost... |
Amanda is paid $12 per hour for tutoring and $24 per hour for teaching online. Last week, she tutored for 10 hours and taught online for 8 hours. What is her total income for last week? | def solve() -> int:
tutoring_rate = 12
online_teaching_rate = 24
tutoring_hours = 10
online_teaching_hours = 8
tutoring_income = tutoring_rate * tutoring_hours
online_teaching_income = online_teaching_rate * online_teaching_hours
total_income = tutoring_income + online_teachin... |
A printer uses 0.5 kilowatts per hour. If it is used for 5 hours a day for a week, how many kilowatts will it use? | def solve() -> int:
power_usage = 0.5
hours_used = 5
days_used = 7
kilowatts_used = power_usage * hours_used * days_used
result = kilowatts_used
return result
|
A store offers a 20% discount on all items. If a customer buys a $50 shirt and a $30 jacket, what is the total cost after the discount? | def solve() -> int:
shirt_cost = 50
jacket_cost = 30
total_cost = shirt_cost + jacket_cost
discount = total_cost * 0.2
total_cost_after_discount = total_cost - discount
result = total_cost_after_discount
return result
|
Maria is a florist and wants to create 60 bouquets for Valentine's Day. She can make 3 bouquets per hour on weekdays and 5 bouquets per hour on weekends. If she has 2 weeks until Valentine's Day, how many hours will she need to work in total? | def solve() -> int:
weekdays_bouquets_per_hour = 3
weekends_bouquets_per_hour = 5
total_bouquets = 60
weeks = 2
weekdays_hours = (total_bouquets // weekdays_bouquets_per_hour) * 5
weekends_hours = (total_bouquets % weekdays_bouquets_per_hour) * 2
total_hours = (weekdays_hours + wee... |
Rebecca is shopping for her daughter's birthday. She found an expensive toy and it normally costs $100, but she has a coupon for 20% off. How much money will she save? | def solve() -> int:
price = 100
discount = 20
discount_percent = discount / 100
discount_amount = price * discount_percent
price_without_discount = price + discount_amount
result = discount_amount
return result
|
A bakery has two types of cakes: chocolate and vanilla cakes. If chocolate cakes make up 70% of the sales, what percentage of the sales are vanilla cakes? | def solve() -> int:
chocolate_cakes = 70
vanilla_cakes = 100 - chocolate_cakes
result = vanilla_cakes
return result
|
A bookstore has 500 books in stock. If each book costs $20, how much total revenue will they make if all the books are sold? | def solve() -> int:
num_books = 500
book_price = 20
total_revenue = num_books * book_price
result = total_revenue
return result
|
In a basketball game, LeBron and Kobe are on one team. The team's total score is obtained by adding the scores of the players of the same team. Out of the 80 shots, LeBron made 5 misses while Kobe made 10 more than half the score of LeBron. What was the total number of misses their team made? | def solve() -> int:
lebron_misses = 5
lebron_shots = 75
kobe_shots = lebron_shots / 2
kobe_made = kobe_shots - 10
team_misses = lebron_misses + (kobe_shots - kobe_made)
result = team_misses
return result
|
If a computer can process 14 tasks per minute, how many tasks can it process in 5 hours? | def solve() -> int:
tasks_processed = 14*60*5
result = tasks_processed
return result
|
Olivia is planting flowers in her garden. She plants two-thirds of them in the front yard, two-fifths of the remaining flowers in the back yard, and the rest in pots. If she plants 12 flowers in pots, how many flowers did Olivia plant in the front yard? | def solve() -> int:
front_yard = 0
back_yard = 0
pots = 12
total_flowers = pots / (1 - (2/5))
back_yard = total_flowers * (2/5)
front_yard = total_flowers * (2/3)
result = front_yard
return result
|
Maggie is going on a road trip with her family of 5. She has 60 snacks in total to share. If she equally distributes all the snacks among everyone, how many snacks will each person get? | def solve() -> int:
total_snacks = 60
num_people = 5
snacks_per_person = total_snacks / num_people
result = snacks_per_person
return result
|
Mark bought a used phone for $500 and spent $10 every day on repairing its screen. He also spent $200 on a new phone case. After 30 days, he sold the phone for $1000. How much profit did Mark make? Emma created a rectangular garden. The perimeter is 20 meters and the width is half the length. What is the length of the ... | def solve() -> int:
phone_cost = 500
repair_cost = 10 * 30
case_cost = 200
selling_price = 1000
total_cost = phone_cost + repair_cost + case_cost
profit = selling_price - total_cost
result = profit
perimeter = 20
width = perimeter / 2
length = (perimeter ... |
A catering company is making chicken skewers for a party of 40 people. If each serving requires 1/3 a cup of marinade and the company's bottle holds 1L of marinade, how many bottles will they need to buy? | def solve() -> int:
people = 40
serving_per_person = 1
marinade_per_serving = 1/3
marinade_per_bottle = 1
total_servings = people * serving_per_person
total_marinade = total_servings * marinade_per_serving
bottles_needed = total_marinade / marinade_per_bottle
result = bottles_n... |
Possible new questions and programs are: A group of friends went to the zoo. They saw 24 birds, 18 mammals, and 6 reptiles. Each bird has 2 legs, each mammal has 4 legs, and each reptile has no legs. How many legs did they see in total? | def solve() -> int:
legs = 0
legs = legs + 24 * 2
legs = legs + 18 * 4
legs = legs + 6 * 0
result = legs
return result
|
Jacob's savings account has $30 less than 5 times the amount in his sister's account. If his sister has $60, how much money does Jacob have in his account? | def solve() -> int:
sister_account = 60
jacob_account = 5 * sister_account - 30
result = jacob_account
return result
|
A hardware store sells hammers and screwdrivers. If they sold 20 hammers at $15 each and 30 screwdrivers at $5 each, what was their total sales? | def solve() -> int:
price_hammer = 15
price_screwdriver = 5
quantity_hammer = 20
quantity_screwdriver = 30
sales = price_hammer*quantity_hammer + price_screwdriver*quantity_screwdriver
result = sales
return result
|
An architect named Lisa is building a new office block. The block will have 15 stories and each story will have 20 rooms. If each room needs 4 light bulbs and each light bulb costs $10, how much will it cost Lisa to buy all the light bulbs she needs? | def solve() -> int:
stories = 15
rooms_per_story = 20
light_bulbs_per_room = 4
cost_per_light_bulb = 10
total_rooms = stories * rooms_per_story
total_light_bulbs = total_rooms * light_bulbs_per_room
total_cost = total_light_bulbs * cost_per_light_bulb
result = total_cost
re... |
Mia baked 6 muffins and ate 2 of them. She decided to share the remaining muffins with her 3 friends. She gave each friend the same number of muffins and kept one for herself. How many muffins did each friend get? | def solve() -> int:
muffins = 6
eaten = 2
friends = 3
self = 1
muffins = muffins - eaten
each = (muffins - self) / friends
result = each
return result
|
The width of rectangle K is 10 inches more than half of the length of rectangle L. If the length of rectangle L is 40 inches, how many inches are the areas of the rectangles in total? | def solve() -> int:
width_k = 10 + 0.5 * 40
area_k = width_k * 40
area_l = 40 * 40
total_area = area_k + area_l
result = total_area
return result
|
A sports store is having a sale. If a pair of sneakers cost $80 before the sale and are now 25% off, what is the new sale price? | def solve() -> int:
original_price = 80
discount_percent = 0.25
discount_amount = original_price * discount_percent
new_price = original_price - discount_amount
result = new_price
return result
|
John earns $18 per hour at his job. How much will he earn in a week if he works 8 hours a day for 5 days? | def solve() -> int:
weekly_earnings = (18*8*5)
result = weekly_earnings
return result
|
Sarah owns a bike rental business. She rents out bikes for $5 per hour. If a customer rents a bike for 4 hours, how much does Sarah collect from this customer? | def solve() -> int:
hourly_rate = 5
hours_rented = 4
total_amount = hourly_rate * hours_rented
result = total_amount
return result
|
Linda had 8 pens and the store was offering an "extra pen free" promotion. How much money will Linda pay for all 8 pens? | def solve() -> int:
price_one = 1
number_of_pens = 8
price_without_discount = price_one * number_of_pens
discount = 1
price_discounted = (price_one * number_of_pens) - (price_one * discount)
result = price_discounted
return result
|
On the first day of the garden center sale, 18 carnations were sold. The next day, the center sold 6 more carnations. On the third day, the center sold two times the number of carnations it did on the day before. How many carnations were sold during the sale? | def solve() -> int:
Total_Carnations = 0
Carnations_Day1 = 18
Total_Carnations = Total_Carnations + Carnations_Day1
Carnations_Day2 = 6
Total_Carnations = Total_Carnations + Carnations_Day2
Carnations_Day3 = Carnations_Day2 * 2
Total_Carnations = Total_Carnations + Carnatio... |
The chances of winning a raffle draw is 5% per ticket. If Scott bought 4 more tickets and entered the draw, what is his new probability of winning? | def solve() -> int:
initial_probability = 0.05
additional_tickets = 4
new_probability = initial_probability + (additional_tickets * initial_probability)
result = new_probability
return result
|
Jessica wants to make smoothies for her family. She needs 3 times as much fruit as yogurt. She already has 2 cups of yogurt, but needs to add more fruit. For every 2 cups of fruit, she can make 4 cups of smoothies. How many cups of fruit does she need to buy if she wants to make a total of 16 cups of smoothies? | def solve() -> int:
yogurt = 2
fruit = 3 * yogurt
total_smoothies = 16
fruit_for_smoothies = total_smoothies * 2 / 4
fruit_needed = fruit_for_smoothies - fruit
result = fruit_needed
return result
|
Colton read 6 books last week and 4 books this week. How many books has Colton read in total? | def solve() -> int:
total_books = 6 + 4
result = total_books
return result
|
Anna saved $550 in July and saved 20% less in August than in July. How much money did Anna save in August? | def solve() -> int:
july_savings = 550
percent_saved_in_august = 0.8
august_savings = july_savings * percent_saved_in_august
result = august_savings
return result
|
Emily went on a road trip and drove 340 miles in 5 hours. What was her average speed in miles per hour? | def solve() -> int:
time = 5
distance = 340
speed = distance/time
result = speed
return result
|
**** Alex has 8 pencils, 7 notebooks and 2 erasers. How many items does he have in total? | def solve() -> int:
pencils = 8
notebooks = 7
erasers = 2
total = pencils + notebooks + erasers
result = total
return result
|
Jake delivers boxes of fruits to two different stores. He delivers 15 boxes of fruits to one store and 25 boxes of fruits to another store each day. How many boxes of fruits does he deliver in a week? | def solve() -> int:
store1 = 15
store2 = 25
days = 7
total_boxes = store1 * days + store2 * days
result = total_boxes
return result
|
Tom has a box of cookies. On Monday, he eats 3 cookies. Each day for the rest of the week he eats 2 more cookies than he did the day before. If on Saturday he counts that there are 8 cookies left, how many cookies were in the box originally? | def solve() -> int:
cookies_on_monday = 3
cookies_on_saturday = 8
cookies_on_tuesday = cookies_on_monday + 2
cookies_on_wednesday = cookies_on_tuesday + 2
cookies_on_thursday = cookies_on_wednesday + 2
cookies_on_friday = cookies_on_thursday + 2
total_cookies = cookies_on_monday + ... |
A company has 400 employees, 70% of whom earn $15 an hour and the rest earn $20 an hour. If each employee works 8 hours a day for 5 days, how much does the company pay in wages? | def solve() -> int:
standard_pay_employees = 400 * 0.7
premium_pay_employees = 400 - standard_pay_employees
standard_pay = standard_pay_employees * 15 * 8 * 5
premium_pay = premium_pay_employees * 20 * 8 * 5
total_wages = standard_pay + premium_pay
result = total_wages
return result
|
John has a total of $50,000 in savings. He wants to buy a house that costs $150,000. He took out a loan of $100,000. If the interest rate of the loan is 5% per year and he plans to repay it in 10 years, how much will he have to pay back in total? | def solve() -> int:
savings = 50000
house_price = 150000
loan_amount = 100000
interest_rate = 0.05
repayment_period = 10
repayment_per_year = loan_amount / repayment_period
total_repayment = 0
for i in range(repayment_period):
this_year_interest = loan_amount * interest_rate
... |
Ali has 5 bags of marbles. Omar has 3 bags of marbles. There are 7 marbles in each bag. If Ali and Omar decide to play a game where they each draw one marble from their bags and keep it if it is blue and return it otherwise, what is the probability that both of them keep a blue marble? Assume that there are 2 blue marb... | def solve() -> int:
p_ali = 2 / 7
p_omar = 2 / 7
result = p_ali * p_omar
return result
|
A store offers a 20% discount on all items. If the original price of an item is $50, what is the sale price after the discount is applied? | def solve() -> int:
original_price = 50
discount = 0.2
sale_price = original_price - (original_price * discount)
result = sale_price
return result
|
Olivia has a bucket full of paint that contains 15 liters. If she needs 1 liter of paint to paint a square meter of the wall, how many walls of 20 square meters each can she paint with one bucket of paint? | def solve() -> int:
paint_bucket = 15
paint_needed_per_square_meter = 1
wall_area = 20
paint_needed_per_wall = paint_needed_per_square_meter * wall_area
walls_painted = paint_bucket // paint_needed_per_wall
result = walls_painted
return result
|
A rectangle has a length of 18 units and a width of 9 units. What is the length of the diagonal of this rectangle? | def solve() -> int:
diagonal_length = (18**2+9**2)**0.5
result = f'<<<{diagonal_length}>>>'
result = diagonal_length
return result
|
If a car travels at a speed of 60 km/h, how far will it travel in 2 hours? | def solve() -> int:
speed = 60
time = 2
distance = speed * time
result = distance
return result
|
A pizza restaurant has 10 large pizzas. Each large pizza is cut into 8 equal slices. If each person can eat 2 slices of pizza, how many people can be fed with all the pizzas? | def solve() -> int:
num_pizzas = 10
slices_per_pizza = 8
slices_needed = num_pizzas * slices_per_pizza
people_fed = slices_needed / 2
result = people_fed
return result
|
Two children divided 60 postcards into a ratio of 3:5. How many postcards did the one who got more cards have? | def solve() -> int:
postcards_received = 5/8 * 60
result = postcards_received
return result
|
There are 8 more yellow pencils than blue. If there are 20 blue pencils, how many yellow pencils are there? | def solve() -> int:
Blue = 20
Yellow = Blue + 8
result = Yellow
return result
|
Student: Frank has some new CDs. Mark has 10 more CDs than Frank. Will has 8 fewer CDs than Mark. If Will has 26 CDs, how many CDs does Frank have? | def solve() -> int:
frank_cds = 0
mark_cds = frank_cds + 10
will_cds = mark_cds - 8
will_cds = 26
mark_cds = will_cds - 8
frank_cds = mark_cds - 10
result = frank_cds
return result
|
It's recess time and Sarah takes two red balls and three blue balls to the playground. How many balls are there in total? | def solve() -> int:
red_balls = 2
blue_balls = 3
total_balls = red_balls + blue_balls
result = total_balls
return result
|
During a furniture clearance sale, a store sold 25 chairs on the first day. On the second day, they sold 40% more chairs than on the previous day. On the third day, the store sold half the number of chairs compared to the second day. How many chairs were sold during the sale? | def solve() -> int:
day1 = 25
day2 = day1 * 1.4
day3 = day2 / 2
total = day1 + day2 + day3
result = total
return result
|
A car travels 200 km in 3 hours. What is the average speed in km/hr? | def solve() -> int:
distance = 200
time = 3
average_speed = distance / time
result = average_speed
return result
|
There are 4,000 apples in a farm. If a farmer picks 1/4 of the apples and sells them to a market, and then 2/5 of the remaining apples are used to make apple cider, how many apples are left in the farm? | def solve() -> int:
apples_in_farm = 4000
picked_apples = apples_in_farm * (1/4)
remaining_apples = apples_in_farm - picked_apples
cider_apples = remaining_apples * (2/5)
apples_left = remaining_apples - cider_apples
result = apples_left
return result
|
If Andrew is currently half as old as Peter is, and in 3 years Peter will be 5 years older than him, how old is Andrew now? If Daniel has twice as many marbles as Chloe and Chloe has 15 marbles, how many more marbles does Daniel have than Chloe? | def solve() -> int:
chloe_marbles = 15
daniel_marbles = 2 * chloe_marbles
marbles_difference = daniel_marbles - chloe_marbles
result = marbles_difference
return result
|
4. James, David, and John played bowling together. David has 3 times as many points as James but 10 fewer points than John. If John scored 50 points, how many points must they still get in order to reach a total of 90 points? | def solve() -> int:
total_points = 90
john_points = total_points // 3
david_points = john_points //3 * 3
james_points = john_points - david_points
remaining_points = total_points - john_points - david_points - james_points
result = remaining_points
return result
|
Susan needs 1/4 ounce of moisturizing cream to apply on her face daily. If she buys the cream in 6-ounce jars, how many jars will she need to last her for a month? | def solve() -> int:
cream_per_day = 1/4
cream_per_month = cream_per_day * 30
jars_per_month = cream_per_month / 6
result = round(jars_per_month, 2)
return result
|
A container measures 10 feet by 12 feet by 15 feet. If the container is to be filled with water for a pool party, how many gallons of water will be needed to fill the container? | def solve() -> int:
length = 10
width = 12
height = 15
gallon_conversion = 7.48
volume_of_container = length * width * height
total_gallons = volume_of_container * gallon_conversion
result = int(total_gallons)
return result
|
A rectangle has a length of 10 meters and a width of 5 meters. If you cut a square out of the corner with a side length of 2 meters, what is the area of the rectangle left? | def solve() -> int:
rectangle_area = 10*5
cutout_area = 2*2
remaining_area = rectangle_area - cutout_area
result = remaining_area
return result
|
Kelly saved $100 per month for 10 months. How much money did she save in total? | def solve() -> int:
monthly_saving = 100
num_of_months = 10
total_saving = monthly_saving * num_of_months
result = total_saving
return result
|
If a recipe calls for 2/3 cups of sugar and you only want to make 1/3 of the recipe, how much sugar will you need? | def solve() -> int:
partial_recipe = 1/3
needed_sugar = (2/3) * partial_recipe
result = needed_sugar
return result
|
Maria's porch swing can hold 500 pounds. She wants to ensure safety by staying 40% under that weight limit. If the swing weighs 75 pounds, what is the maximum amount of weight it can hold? | def solve() -> int:
weight_limit = 500
safety_percentage = 0.4
swing_weight = 75
maximum_weight = (weight_limit - swing_weight) * (1 - safety_percentage)
result = maximum_weight
return result
|
Student: There are 28 seagulls sitting on a nearby island. One-fourth of them fly towards the main beach. How many seagulls are left sitting on the island? | def solve() -> int:
seagulls = 28
beach_seagulls = seagulls / 4
island_seagulls = seagulls - beach_seagulls
result = island_seagulls
return result
|
arah buys a computer for $800 and gets a 15% discount. What will she pay in total? | def solve() -> int:
original_price = 800
discount = original_price * 0.15
final_price = original_price - discount
result = round(final_price, 2)
return result
|
Jake wants to walk his dog for an hour every day this week. He walked the dog for 45 minutes on Monday and 50 minutes on Tuesday. How many more minutes does Jake need to walk his dog for the rest of the week to meet his goal? | def solve() -> int:
goal = 60*7
minutes_walked = 45+50
minutes_left = goal - minutes_walked
result = minutes_left
return result
|
There are 100 seeds in a garden. If the number of seeds doubles every month, how many seeds will there be in 6 months? | def solve() -> int:
seeds = 100
months = 6
for i in range(months):
seeds *= 2
result = seeds
return result
|
Q9: Martha and her friends decided to set up a lemonade stand at the farmer’s market. For every cup of lemonade they sell they make a profit of $2. At the end of the day, they sold 45 cups and made a total profit of $90. How much did each cup cost? | def solve() -> int:
total_profit = 90
number_of_cups_sold = 45
profit_per_cup = 2
total_cost = total_profit + number_of_cups_sold * profit_per_cup
cost_per_cup = total_cost / number_of_cups_sold
result = cost_per_cup
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.