question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Student: Jack went to the market and bought some apples, oranges, and bananas. He bought 16 fruits in total. He divided the apples into 2 piles with 6 apples in each pile. What fraction of the fruit in the whole basket were bananas? | def solve() -> int:
total_fruits = 16
apples_in_each_pile = 6
total_apples = apples_in_each_pile * 2
total_bananas = total_fruits - total_apples
fraction_of_bananas = total_bananas / total_fruits
result = fraction_of_bananas
return result
|
Lucy is a baker and she earns $2 for every cake she bakes. If she can bake a cake in 15 minutes, how much can she earn in an hour? | def solve() -> int:
cakes_per_hour = 60 / 15
earnings_per_hour = cakes_per_hour * 2
result = earnings_per_hour
return result
|
Lily collects stickers. In her collection of stickers, she had one-fifth as many animal stickers as superhero stickers yesterday. Today, she traded 4 superhero stickers for 8 animal stickers. If she has 20 animal stickers now, how many superhero stickers does she have? | def solve() -> int:
superhero_stickers_yesterday = 5 * 20
animal_stickers_yesterday = superhero_stickers_yesterday / 5
animal_stickers_today = 20
superhero_stickers_today = superhero_stickers_yesterday - 4 + 8
result = superhero_stickers_today
return result
|
Dan and Andrew went to buy some cakes and muffins. Andrew bought 7 times the number of cakes and 4 times the number of muffins Dan bought. If Andrew bought 28 cakes and 16 muffins, how many cakes and muffins did Dan buy in total? | def solve() -> int:
d_cakes = None
d_muffins = None
a_cakes = 28
a_muffins = 16
d_cakes = a_cakes / 7
d_muffins = a_muffins / 4
result = d_cakes + d_muffins
return result
|
Q4: Jacob wanted to buy a car. The cost of the car is $12000. He decided to put aside $500 every month to save up for the car. How many months did it take for Jacob to save up? | def solve() -> int:
total_cost = 12000
saving_per_month = 500
months = 0
while total_cost > 0:
total_cost -= saving_per_month
months +=1
result = months
return result
|
A construction worker can build 5 walls in 2 hours. How long will it take him to build 10 walls? | def solve() -> int:
walls_built = 5
time_taken = 2
walls_needed = 10
walls_per_hour = walls_built / time_taken
time_needed = walls_needed / walls_per_hour
result = time_needed
return result
|
A car travels 100 miles in 2 hours. If it continues at the same speed, how far will it travel in 5 hours? | def solve() -> int:
speed = 100 / 2
distance = speed * 5
result = distance
return result
|
Rachel had $2000. She donated 1/4 of it in May, 1/5 of it in June and $500 in July. After these donations, she still had $900 left. How much did Rachel initially have saved? Samantha has 3 dogs. The total weight of all 4 animals combined is 126 pounds. Two of the dogs are both 34 pounds. Another dog weighs 30 pounds. I... | def solve() -> int:
initial_amount = 2000
may_donation = initial_amount / 4
june_donation = initial_amount / 5
july_donation = 500
remaining_amount = 900
total_donation = may_donation + june_donation + july_donation
initial_amount = remaining_amount + total_donation
result = in... |
Rebecca is making a fruit pie. She needs 4 cups of mixed fruit for every 3 cups of sugar. It takes 8 cherries to make one cup of mixed fruit. If Rebecca uses 64 cherries, how many cups of sugar should she use? | def solve() -> int:
cherries = 64
cherries_per_mixed_fruit_cup = 8
mixed_fruit_per_sugar = 4/3
mixed_fruit = cherries / cherries_per_mixed_fruit_cup
sugar = mixed_fruit / mixed_fruit_per_sugar
result = sugar
return result
|
A delivery driver leaves his warehouse at 6:00am with 702 boxes. He makes 60 deliveries by the end of the day. If he delivers an average of 10 boxes per hour, how many boxes does he have left? | def solve() -> int:
total_boxes = 702
delivery_rate = 10
total_hours = 6
leftover_boxes = total_boxes - delivery_rate*total_hours
result = leftover_boxes
return result
|
Ella and Lucy went to the bookstore to buy some novels and textbooks. Lucy bought 4 times more textbooks and novels than Ella. If Lucy bought 32 novels and 24 textbooks, how many novels and textbooks did Ella buy in total? | def solve() -> int:
x = 32/4
y = 24/4
total = x + y
result = total
return result
|
A store offers a buy one, get one 50% off deal on shirts that cost $30 each. If you buy 2 shirts, how much do you pay in total? | def solve() -> int:
shirt_price = 30
num_shirts = 2
subtotal = shirt_price * num_shirts
discount_percent = 0.50
discount_amount = (subtotal / 2) * discount_percent
total = subtotal - discount_amount
result = total
return result
|
A company sells laptops for $800 each. If the cost of production and shipping is $550 per laptop, what is the profit of the company if they sell 25 laptops? | def solve() -> int:
laptop_cost = 800
prod_shipping = 550
total_cost = laptop_cost + prod_shipping
selling_price = laptop_cost
quantity_sold = 25
total_revenue = selling_price * quantity_sold
total_profit = total_revenue - (total_cost * quantity_sold)
result = total_profit
return res... |
-Some hints for generating questions: You can use different animals, different body parts, different fractions, different operations, different numbers, etc. Lila the ladybug has a symmetrical pattern of black and white spots on her wings. On each wing, two-fifths of the spots are black and the rest are white. If Lila ... | def solve() -> int:
black_fraction = 2/5
white_fraction = 3/5
black_spots_left = 8
total_spots = black_spots_left * 5 / black_fraction
white_spots = white_fraction * total_spots
white_spots_right = white_spots
result = white_spots_right
return result
|
Student: Mary baked a dozen muffins for her family. On the first day, she ate 2 muffins and gave 1 to her neighbor. On the second day, she ate twice as many muffins as she ate the first day and gave 2 to her neighbor. On the third day, she ate half as many muffins as she ate the second day and gave none to her neighbor... | def solve() -> int:
muffins = 12
muffins_eaten_1 = 2
muffins_given_1 = 1
muffins_eaten_2 = 2 * muffins_eaten_1
muffins_given_2 = 2
muffins_eaten_3 = muffins_eaten_2 / 2
muffins_given_3 = 0
muffins_eaten_4 = muffins_eaten_1
muffins_given_4 = 1
muffins_left = muffins - (mu... |
Possible additional questions: A shirt is on sale for 25% off its original price. If the original price was $24, how much does the shirt cost after the discount? | def solve() -> int:
original_price = 24
discount_rate = 0.25
discount_amount = original_price * discount_rate
final_price = original_price - discount_amount
result = final_price
return result
|
Jackson is preparing a meal. He needs 1.5 pounds of chicken and 2 pounds of broccoli. The broccoli costs $4 per pound and the chicken is 3 times that price. How much will everything cost? | def solve() -> int:
chicken_weight = 1.5
broccoli_weight = 2
broccoli_price = 4
chicken_price = 3 * broccoli_price
broccoli_cost = broccoli_weight * broccoli_price
chicken_cost = chicken_weight * chicken_price
total_cost = broccoli_cost + chicken_cost
result = total_cost
re... |
A fruit stand has 50 bananas and 70 oranges. If a fruit basket contains 4 fruits, how many baskets can be made using all the bananas and oranges? | def solve() -> int:
bananas = 50
oranges = 70
total_fruits = bananas + oranges
fruits_per_basket = 4
baskets = total_fruits // fruits_per_basket
result = baskets
return result
|
A family spends $95.95 on groceries every week. Given that the family has spent $14.72 on snacks, how much have they spent on the groceries? | def solve() -> int:
total = 95.95
snacks = 14.72
result = total - snacks
result = 81.23
return result
|
A plane travels a distance of 3000 km at a speed of 600 km/hr. How long does the journey take in hours? | def solve() -> int:
distance = 3000
speed = 600
time = distance / speed
result = int(time)
return result
|
Among the career rushing yards leaders for the NFL, Emmitt Smith has 654 more than four times the number that Frank Gore has. Emmitt Smith had 18355 yards. How many yards did Frank Gore have in his career? | def solve() -> int:
x = (18355 - 654) / 4
result = x
result
return result
|
A coffee shop has two sizes of cups- small and large. The small cup holds 8 ounces of coffee, and the large cup holds 12 ounces of coffee. A customer orders 3 small cups and 2 large cups of coffee. How many ounces of coffee will they get in total? | def solve() -> int:
small_cup_size = 8
large_cup_size = 12
small_cups_ordered = 3
large_cups_ordered = 2
total_ounces = (small_cup_size * small_cups_ordered) + (large_cup_size * large_cups_ordered)
result = total_ounces
return result
|
Rachel is knitting scarves for her friends. Each scarf requires 4 skeins of yarn and she has 24 skeins in total. How many scarves can she knit? | def solve() -> int:
skeins_per_scarf = 4
total_skeins = 24
scarves = total_skeins // skeins_per_scarf
result = scarves
return result
|
Farmer Jones raises pheasants, medium-size birds. His farm contains 35 heads and 82 legs. How many pheasants are in his flock? | def solve() -> int:
def num_pheasants(heads, legs):
pheasants = 0
for i in range(heads + 1):
if (2 * i + 3 * (heads - i) == legs):
pheasants = i
break
return pheasants
heads = 35
legs = 82
result = num_pheasants(heads, legs)
... |
Sarah went to the bookstore and bought a $15 book. She then added a $7 journal to her purchase. Finally, she decided to also buy a $3 pen. What was the total cost of Sarah's shopping trip to the bookstore? | def solve() -> int:
book_cost = 15
journal_cost = 7
pen_cost = 3
total_cost = book_cost + journal_cost + pen_cost
result = total_cost
return result
|
A company pays their employees $15 an hour. If an employee works 40 hours a week, how much do they make in a week before taxes? | def solve() -> int:
pay_per_hour = 15
hours_per_week = 40
weekly_pay = pay_per_hour * hours_per_week
result = weekly_pay
return result
|
A store sells shoes for 40 dollars per pair. If the store makes a profit of 20% per pair sold, how much is the profit from selling 25 pairs? | def solve() -> int:
shoe_price = 40
profit_percent = 0.2
profit_for_1_pair = shoe_price * profit_percent
profit_for_25_pairs = profit_for_1_pair * 25
result = profit_for_25_pairs
return result
|
Alex went to the grocery and bought 6 packages of strawberries, each containing 2 dozen strawberries. While holding them, Alex drops one of the boxes. Four strawberries receive bruises, and twice as many get slightly mushy. How many strawberries remain fresh? | def solve() -> int:
packages_of_strawberries = 6
strawberries_per_package = 2 * 12
total_strawberries = packages_of_strawberries * strawberries_per_package
bruised_strawberries = 4
mushy_strawberries = 2 * bruised_strawberries
fresh_strawberries = total_strawberries - (bruised_strawber... |
- A flower shop sells roses for $2 each and lilies for $1.5 each. For every 10 flowers you buy, you get a 10% discount. If Haley bought 30 roses and 20 lilies, how much did she pay at the flower shop? | def solve() -> int:
rose = 2
lily = 1.5
discount_flower = 10
discount_rate = 0.1
roses = 30
lilies = 20
total_cost_before_discount = (rose + lily) * (roses + lilies)
total_discount = total_cost_before_discount * discount_rate * ((roses + lilies) // discount_flower)
... |
Lucy is contemplating using a bamboo toothbrush instead of a plastic toothbrush to reduce her waste. If producing one plastic toothbrush releases 0.5 ounces of carbon dioxide, and Lucy uses 4 toothbrushes per year, how many years must Lucy use the bamboo toothbrush before it becomes the lower-carbon option? | def solve() -> int:
plastic_CO2_per_toothbrush = 0.5
toothbrushes_per_year = 4
years = 0
while True:
plastic_CO2_per_year = plastic_CO2_per_toothbrush * toothbrushes_per_year
bamboo_CO2_per_year = 0.0
if bamboo_CO2_per_year < plastic_CO2_per_year:
break
... |
A group of friends is going on a trip that requires a total cost of $900. How much money should each person contribute if there are 6 people in the group? | def solve() -> int:
total_cost = 900
num_people = 6
cost_per_person = total_cost / num_people
result = cost_per_person
return result
|
A pizza has a radius of 30 cm. What is the area of the pizza? | def solve() -> int:
radius = 30
area = 3.14 * radius ** 2
result = area
return result
|
In the town library, roses grow in the garden and it costs $4.50 for each one. Ann bought 8 roses in total. John bought 5 roses, and his purchase was $2.50 more than Ann's total purchase. How much did John spend? | def solve() -> int:
rose1 = 4.5
rose2 = 8 * rose1
rose3 = rose2 - 2.5
result = rose3
return result
|
Student: Mindy bought a new laptop and paid it off in 24 equal monthly installments of $75.00 each, with no interest. How much did the laptop cost? | def solve() -> int:
monthly_payment = 75.00
number_of_payments = 24
total_cost = monthly_payment * number_of_payments
result = total_cost
return result
|
Olivia wants to go bowling. One game costs 5 dollars and another game costs 10 dollars. If Olivia plays both games on separate days, how much total money will she spend? Each car needs to use 20 liters of gas per day to travel. Each truck needs to use 50 liters of gas per day to travel. Each plane needs to use 500 lite... | def solve() -> int:
game1_cost = 5
game2_cost = 10
total_cost = game1_cost + game2_cost
result = total_cost
car_gas_usage = 20
truck_gas_usage = 50
plane_gas_usage = 500
num_planes = 5
total_gas_usage = (car_gas_usage + truck_gas_usage) * 2 + plane_gas_usage * num_planes
res... |
Jake has a garden in his backyard. He planted sunflowers in every square meter. His garden is 12 square meters. How many sunflowers did he plant? | def solve() -> int:
garden_size = 12
sunflowers_per_square_meter = 1
total_sunflowers = garden_size * sunflowers_per_square_meter
result = total_sunflowers
return result
|
Lily and her cousin Isla received $120 from their uncle. Lily spent $55 on six puzzles and three board games at $7 each. If Isla used the remaining money to buy ten gel pens at $4 each and a pencil sharpener, what was the cost of the pencil sharpener? | def solve() -> int:
uncle_money = 120
lily_puzzles = 6
lily_board_games = 3
lily_puzzle_cost = 7
lily_board_game_cost = 7
lily_spent = (lily_puzzles * lily_puzzle_cost) + (lily_board_games * lily_board_game_cost)
isla_remaining_money = uncle_money - lily_spent
isla_gel_pens = 1... |
Daniel has 55% less money than James. If James has $647, how much does Daniel have? | def solve() -> int:
jamess_money = 647
daniels_money = jamess_money * 0.45
result = daniels_money
return result
|
Student: During the Science fair, the Yellow team presented 8 projects in the first hour and half that amount in the second hour. The Brown team presented double the amount that the Yellow team presented in the first hour, and twice the amount that the Yellow team presented in the second hour. What is the total amount ... | def solve() -> int:
yellow_first = 8
yellow_second = yellow_first / 2
brown_first = yellow_first * 2
brown_second = yellow_second * 2
total = yellow_first + yellow_second + brown_first + brown_second
result = total
return result
|
Ava drank two-thirds of a carton of milk that had one liter when she came home from school. How much milk is remaining in the carton? | def solve() -> int:
carton_capacity = 1
drank_milk = (2/3) * carton_capacity
remaining_milk = carton_capacity - drank_milk
result = remaining_milk
return result
|
A family went on a road trip with their 2 dogs and 1 cat. They packed 5 dozen chew bones for the animals. Each dog received 3 chew bones, while the cat received 2 chew bones. How many animals were on the trip? | def solve() -> int:
dogs = 2
cat = 1
total_bones = 5 * 12
bones_per_dog = 3
bones_per_cat = 2
total_bones_for_dogs = dogs * bones_per_dog
total_bones_for_cat = cat * bones_per_cat
total_bones_used = total_bones_for_dogs + total_bones_for_cat
animals_on_trip = dogs + ca... |
Student: 2. A nursery school has 8 cats, but each cat has a different number of tails. If the total number of tails is 32, how many tails does the most tailed cat have? | def solve() -> int:
num_cats = 8
total_tails = 32
avg_tails = total_tails / num_cats
most_tailed_cat = avg_tails * num_cats
result = most_tailed_cat
return result
|
Diana is considering buying a car. She has found a car she likes that has a total price tag of $25,000 after taxes. She has saved $15,000 already, but wants to finance the rest of the purchase. How much money does Diana need to finance? | def solve() -> int:
total_price = 25000
saved_amount = 15000
cost_to_finance = total_price - saved_amount
result = cost_to_finance
return result
|
The school library is having a book sale to raise money for new books. They sell paperback books for $2 each, hardcover books for $5 each, and magazines for $1 each. They sold 120 paperback books, 40 hardcover books, and 80 magazines. They also received some donations from generous patrons, which totaled $50. How much ... | def solve() -> int:
paperback = 120
hardcover = 40
magazine = 80
paperback_price = 2
hardcover_price = 5
magazine_price = 1
donation = 50
item_sales = paperback * paperback_price + hardcover * hardcover_price + magazine * magazine_price
total_sales = item_sales + donation
result ... |
Jules has a can of juice, which has exactly 16 ounces. He puts some of the juice into three separate glasses. The first contains half an ounce less than the second, and the third contains five ounces more than half of the first. How many ounces of juice are each of the glasses? | def solve() -> int:
total_ounces = 16
ounces_first_glass = total_ounces/2 - 0.5
ounces_second_glass = total_ounces/2
ounces_third_glass = ounces_first_glass + 5
result = [ounces_first_glass, ounces_second_glass, ounces_third_glass]
return result
|
Jason wanted to purchase a new laptop for $900 and an external hard drive for $100. However, he realized that he could save 20% on the laptop and 35% on the external hard drive by using a coupon code. How much money could Jason save by using the coupon code? | def solve() -> int:
laptop_price = 900
hard_drive_price = 100
laptop_discount = 0.2
hard_drive_discount = 0.35
laptop_savings = laptop_price * laptop_discount
hard_drive_savings = hard_drive_price * hard_drive_discount
total_savings = laptop_savings + hard_drive_savings
... |
An engineering firm charges $100 per hour for consulting work and has a fixed fee of $500 per project. If the firm worked on a project for 10 hours, what is the total cost of the project? | def solve() -> int:
hourly_rate = 100
fixed_fee = 500
hours_worked = 10
total_cost = (hourly_rate * hours_worked) + fixed_fee
result = total_cost
return result
|
- **Avoid repetition in the questions and the scenarios** Here are some possible questions and programs: Mia had 512 marbles in her collection. She bought 96 more marbles at the store, but then she gave away a quarter of her marbles to her friends. How many marbles does Mia have left now? | def solve() -> int:
marbles = 512
marbles = marbles + 96
marbles = marbles - marbles // 4
result = marbles
return result
|
In a class of 25 students, there are 12 boys. What percentage of the class are girls? | def solve() -> int:
total_students = 25
num_boys = 12
num_girls = total_students - num_boys
percentage_of_girls = (num_girls / total_students) * 100
result = percentage_of_girls
return result
|
John and Mary have four pencils. Every week, their teacher gives them four more pencils, but then they lose two pencils. How many pencils will they have in two months? | def solve() -> int:
current_pencils = 4
for x in range(2):
current_pencils += 4
current_pencils -= 2
result = current_pencils
return result
|
Jack had $30 to spend at the flea market on Saturday. He spent $10 on a used book and then won $40 by entering a prize draw at a booth. He then decided to take a chance and visit a nearby casino. Unfortunately, he lost all $60 he spent playing roulette tables. Disappointed, he bought a $3 slice of pizza and a $2 coffee... | def solve() -> int:
jack_money = 30
book_cost = 10
prize_money = 40
roulette_loss = 60
pizza_cost = 3
coffee_cost = 2
lottery_ticket_cost = 1
lottery_winnings = 25
jack_money -= book_cost
jack_money += prize_money
jack_money -= roulette_loss
jack_money -= pizza_cost
... |
arah bought a bag of 50 marbles, 20 of them are red and 30 of them are blue. If Sarah picks a marble at random, what is the percentage chance it will be blue? | def solve() -> int:
total_marbles = 50
blue_marbles = 30
percentage_chance = (blue_marbles/total_marbles) * 100
result = percentage_chance
return result
|
Lucy has 50 pencils. She also has 3 times as many erasers as pencils. How many erasers does Lucy have in all? | def solve() -> int:
pencils = 50
erasers = 3 * pencils
result = erasers
return result
|
A rectangular box has a length of 6 feet, a width of 4 feet, and a height of 5 feet. What is the volume of the box? | def solve() -> int:
length = 6
width = 4
height = 5
volume = length * width * height
result = volume
return result
|
A company that makes widgets has a fixed cost of $1000 per month. It costs $2 to produce each widget. If they sell each widget for $5, how many widgets do they have to sell in a month to break even? | def solve() -> int:
fixed_cost = 1000
production_cost = 2
price_per_widget = 5
break_even = fixed_cost / (price_per_widget - production_cost)
result = break_even
return result
|
If a rectangle has an area of 60 square meters and a width of 5 meters, what is the length of the rectangle? | def solve() -> int:
area = 60
width = 5
length = area / width
result = length
return result
|
A bicycle cost $600 originally, but is now on sale for 10% off. If tax is 8%, what is the final price of the bicycle? | def solve() -> int:
original_price = 600
discounted_price = original_price * 0.9
final_price = discounted_price * 1.08
result = final_price
return result
|
Wally is making designs for a room. He has 8 tiles of red, 11 tiles of green and 16 tiles of yellow. He uses 4 tiles of the same color for each design. How many designs can Wally make with all the tiles? | def solve() -> int:
red = 8
green = 11
yellow = 16
red_total = 4*red
green_total = 4*green
yellow_total = 4*yellow
total_designs = red_total + green_total + yellow_total
result = total_designs
return result
|
A bakery offers a special deal on cakes if the average weight of the cakes sold in a week is at least 2 pounds. If the bakery has sold 20 cakes weighing 40 pounds in total, what is the minimum weight the remaining cakes must have to fulfill the deal? | def solve() -> int:
cakes_sold = 20
total_weight = 40
average_weight = total_weight / cakes_sold
minimum_weight = (2 * (cakes_sold + 1)) - total_weight
result = minimum_weight
return result
|
Rachel and Ross decide to split a pint of ice cream. The pint has 4 cups of ice cream in total. Rachel eats 2 cups and Ross eats 1 cup. How many cups of ice cream are left per person? | def solve() -> int:
total_cups = 4
rachel_cups = 2
ross_cups = 1
remaining_cups = total_cups - rachel_cups - ross_cups
cups_per_person = remaining_cups / 2
result = cups_per_person
return result
|
Daniel has a collection of 400 toy cars. He donated 30% of them to charity. How many toy cars does Daniel have now? | def solve() -> int:
cars = 400
donated_cars = cars * 0.3
remaining_cars = cars - donated_cars
result = remaining_cars
return result
|
Student: An athlete can run a marathon in 4 hours. However, it will take the athlete an additional 45 minutes to reach the starting point. How many kilometers has the athlete run? | def solve() -> int:
time_to_run_marathon = 4 * 60
time_to_reach_starting_point = 45
total_time = time_to_run_marathon + time_to_reach_starting_point
total_time_in_hours = total_time / 60
distance_run = total_time_in_hours * 42.195
result = distance_run
return result
|
An apple costs $1.50. How much would it cost to buy 10 apples? | def solve() -> int:
apple_cost = 1.5
quantity = 10
total_cost = apple_cost * quantity
result = total_cost
return result
|
A car travels 180 miles in 3 hours. If it continues at the same speed, how far will it go in 6 hours? | def solve() -> int:
speed = 180/3
distanceIn6Hours = speed*6
result = distanceIn6Hours
return result
|
A father gave his two children, Jim and Jill, $20 each. Jim spends $5 on ice cream and Jill saves the $20. Jim then decides to save too and saves half of what he has left. How much money does Jim now have? | def solve() -> int:
total_money_given = 40
jim_spent = 5
jim_money_left = 20 - jim_spent
jill_money_saved = 20
jim_saved_half_of_remaining_money = 0.5 * jim_money_left
jim_total_left = jim_saved_half_of_remaining_money + jim_spent
result = jim_total_left
return result
|
John saved 1/4 of his paycheck. If he saved $120, how much was his paycheck? | def solve() -> int:
savings = 120
paycheck = savings / (1/4)
result = paycheck
return result
|
Pamela has 4 red balloons and 7 blue balloons. What percentage of her balloons are red? | def solve() -> int:
total_balloons = 11
red_balloons = 4
red_percent = (red_balloons / total_balloons) * 100
result = red_percent
return result
|
A store has a total of 600 shirts of various sizes. If 100 of the shirts are small size measuring 2 feet by 3 feet each, and the remaining shirts are all the same size, what is the area, in square feet, of one of the remaining shirts? | def solve() -> int:
total_shirts = 600
given_shirts = 100
given_shirts_area = 2 * 3 * given_shirts
total_area = given_shirts_area * total_shirts / given_shirts
remaining_shirts = total_shirts - given_shirts
one_remaining_shirt_area = total_area / remaining_shirts
result = one_remaining_shirt... |
In a mini-golf course, there are 18 holes and the average number of shots per hole is 3. If a person plays all the holes, how many shots does he/she take in total? | def solve() -> int:
num_holes = 18
num_shots_per_hole = 3
total_shots = num_holes * num_shots_per_hole
result = total_shots
return result
|
-Keep your answer in the answer box Kelly likes to bake cakes for her friends. She needs 3 eggs for each cake and has 18 eggs in total. How many cakes can she bake if she wants to have 6 eggs left for breakfast? | def solve() -> int:
eggs_per_cake = 3
total_eggs = 18
eggs_for_breakfast = 6
eggs_for_baking = total_eggs - eggs_for_breakfast
cakes = eggs_for_baking // eggs_per_cake
result = cakes
return result
|
Student: The original price of a book is $18. If a customer pays $16.20 after a discount, what is the percentage discount? | def solve() -> int:
original_price = 18
discounted_price = 16.20
difference = original_price - discounted_price
percentage_discount = (difference / original_price) * 100
result = percentage_discount
return result
|
If Olivia's cat weighs 15 pounds, and Samantha's cat weighs one-sixth the weight of Olivia's cat, what is the total weight of their cats? | def solve() -> int:
olivia_cat_weight = 15
samantha_cat_weight = olivia_cat_weight / 6
total_weight = olivia_cat_weight + samantha_cat_weight
result = total_weight
return result
|
Emily can run 10 miles in 2 hours. How many miles can she run in 5 hours? | def solve() -> int:
speed = 5
time = 2
distance = speed * time
result = distance * 5
return result
|
A bookstore has 500 copies of a book. If they sell 30% of them in the first month and then 10% in the second month, how many copies of the book are left in the store? | def solve() -> int:
num_books = 500
sold_first_month = num_books * 0.3
sold_second_month = num_books * 0.1
total_sold = sold_first_month + sold_second_month
remaining_books = num_books - total_sold
result = remaining_books
return result
|
How many years could a dog live if it has 10 times the life expectancy of a hamster? | def solve() -> int:
hamster_avg_lifespan = 2.5
dog_lifespan = hamster_avg_lifespan*10
result = dog_lifespan
return result
|
If a car travels at a speed of 60 mph for 3 hours, how far does it travel in total? | def solve() -> int:
speed = 60
time = 3
distance = speed * time
result = distance
return result
|
7. Craig collected 864 cans for recycling. If each bag carries 24 cans, how many bags of cans did he collect? | def solve() -> int:
num_cans = 864
cans_per_bag = 24
total_bags = num_cans / cans_per_bag
result = total_bags
return result
|
The football field is 100 yards wider than the soccer field, and the soccer field is 50 yards wider than the baseball field. If the football field is 250 yards wide, how wide is the baseball field in yards? | def solve() -> int:
football_field_width = 250
soccer_field_width = football_field_width - 100
baseball_field_width = soccer_field_width - 50
result = baseball_field_width
return result
|
A car travels 80 miles in 2 hours. If it continues at the same speed, how many hours will it take to travel 240 miles? | def solve() -> int:
distance = 80
time = 2
speed = distance / time
new_distance = 240
new_time = new_distance / speed
result = new_time
return result
|
At the book fair, Susan and Henry bought a total of 192 books. If Henry bought 8 times as many books as Susan, how many books did Susan buy? | def solve() -> int:
total_books = 192
henry_books = total_books // 8
susan_books = total_books - henry_books
result = susan_books
return result
|
A group of 60 students is going on a field trip. Each bus can hold 30 students. How many buses will be needed for the field trip? | def solve() -> int:
total_students = 60
students_per_bus = 30
buses_needed = total_students // students_per_bus
if total_students % students_per_bus!= 0:
buses_needed += 1
result = buses_needed
return result
|
Emily had 600 dollars in her savings account. She withdrew 350 dollars and deposited 450 dollars more. What is the balance in her savings account now? | def solve() -> int:
savings_account_balance = 600
withdrawal_amount = 350
deposit_amount = 450
savings_account_balance -= withdrawal_amount
savings_account_balance += deposit_amount
result = savings_account_balance
return result
|
Sophia has 2000 books in her library, but 15% of them were damaged due to water leakage. If she replaces each damaged book with four new books, how many books does she have now? | def solve() -> int:
books_in_library = 2000
damaged_books = books_in_library * 0.15
new_books = damaged_books * 4
total_books = books_in_library + new_books
result = total_books
return result
|
Margaret and her four friends shared an ice cream sundae. Margaret was able to eat 3 times as much as each of her friends. If Margaret ate 18 scoops of ice cream, how many scoops did each of her friends eat? | def solve() -> int:
margaret_scoops = 18
friends_scoops = 0
friends_scoops = margaret_scoops/3
result = friends_scoops
return result
|
This morning, Mia, Maya, and Molly went shopping. If Maya spent $35 and Molly spent twice as much as Maya, and Mia spent four times as much as Molly, how much did they spend in total? | def solve() -> int:
maya_spent = 35
molly_spent = maya_spent * 2
mia_spent = molly_spent * 4
total_spent = maya_spent + molly_spent + mia_spent
result = total_spent
return result
|
Tom buys a t-shirt for $14.50 and pays with a $20 bill. How much change will he receive if he wants to receive the least number of coins? | def solve() -> int:
money_paid = 20.00
item_cost = 14.50
change = money_paid - item_cost
result = change
return result
|
A pack of pencils costs $2.40 and contains 12 pencils. How much, in dollars, does each pencil cost? | def solve() -> int:
total_cost = 2.40
number_of_pencils = 12
cost_per_pencil = total_cost / number_of_pencils
result = cost_per_pencil
return result
|
Aidan can build a Lego set in 1 hour and 20 minutes and then play with it for 45 minutes. How much time will Aidan need to build 5 sets and play with each set afterward? | def solve() -> int:
time_to_build_one_Lego_set = 80
time_to_play_with_one_set = 45
total_time = 5*time_to_build_one_Lego_set + 5*time_to_play_with_one_set
result = total_time/60
return result
|
A grocery bag is capable of carrying 10 liters of milk. Each carton of milk is 1 liter. How many 2-liter cola bottles can it hold if it already has 4 cartons of milk in it? | def solve() -> int:
milk_capacity = 10
carton_capacity = 1
milk_in_bag = 4
total_milk_in_liters = carton_capacity * milk_in_bag
cola_bottle_capacity = 2
cola_bottles_in_bag = total_milk_in_liters / cola_bottle_capacity
result = int(cola_bottles_in_bag)
return result
|
Student: If a train travels 500 miles in 8 hours, what is its average speed? | def solve() -> int:
distance = 500
time = 8
speed = distance / time
result = speed
return result
|
A bakery is selling cakes for a fundraiser. They sold 104 chocolate cakes for $20 each and 97 vanilla cakes for $18 each. How much money did the bakery raise from selling cakes? | def solve() -> int:
chocolate_cakes = 104
vanilla_cakes = 97
chocolate_price = 20
vanilla_price = 18
chocolate_sales = chocolate_cakes * chocolate_price
vanilla_sales = vanilla_cakes * vanilla_price
total_sales = chocolate_sales + vanilla_sales
result = total_sales
... |
If Steven bought 10 packets of chips at $1 each and 2 packets of biscuits at $2 each, how much did he spend in total? | def solve() -> int:
price_per_chips = 1
price_per_biscuits = 2
total_chips = 10 * price_per_chips
total_biscuits = 2 * price_per_biscuits
total_spend = total_chips + total_biscuits
result = total_spend
return result
|
Kevin has saved $10000 to buy materials for his latest art project. He needs at least 3 canvases and 4 sets of brushes, each canvas costs $50 and each set of brushes costs $10. How much money does Kevin have left after buying all the materials he needs? | def solve() -> int:
canvases_num = 3
brushes_num = 4
canvas_cost = 50
brush_cost = 10
materials_cost = canvases_num * canvas_cost + brushes_num * brush_cost
Kevin_saved = 10000
left_over_money = Kevin_saved - materials_cost
result = left_over_money
return result
|
If Dylan saves $1 on the first day and doubles the amount each day for 30 days, how much does he save in total? | def solve() -> int:
days_in_month = 30
first_day_savings = 1
total_savings = first_day_savings * (2**(days_in_month))-1
result = total_savings
return result
|
There are 60 eggs in a carton. Two-fifths of them are brown and the rest are white. How many more white eggs are there than brown eggs? | def solve() -> int:
brown_eggs = 60 * 2/5
white_eggs = 60 - brown_eggs
difference = white_eggs - brown_eggs
result = difference
return result
|
Amber has twice as many apples as Bella. If Amber has 48 apples, how many apples does Bella have? | def solve() -> int:
Amber_apples = 48
Bella_apples = Amber_apples / 2
result = Bella_apples
return result
|
Emma is planning to invest her money in two different companies. Company X gives a 10% return on investment for 3 years, and company Y gives a 15% return on investment for 2 years. Which company will give Emma more profit? | def solve() -> int:
x_investment = 1000
y_investment = 1000
x_return = x_investment * 0.10 * 3
y_return = y_investment * 0.15 * 2
if x_return > y_return:
result = "Company X"
else:
result = "Company Y"
return result
|
A sports shop sells 200 tennis rackets and 150 basketballs every month. If the price of a tennis racket is $80 and that of a basketball is $50, what is the total revenue earned in a quarter? | def solve() -> int:
tennis_rackets_sold_per_month = 200
basketballs_sold_per_month = 150
price_per_tennis_racket = 80
price_per_basketball = 50
tennis_rackets_sold_per_quarter = tennis_rackets_sold_per_month * 3
basketballs_sold_per_quarter = basketballs_sold_per_month * 3
total_re... |
A train travels at a speed of 90 km/h for 2 hours, then slows down to 60 km/h for 1 hour, and finally stops at a station. How far did the train travel in total? | def solve() -> int:
speed1 = 90
speed2 = 60
time1 = 2
time2 = 1
distance1 = speed1 * time1
distance2 = speed2 * time2
total_distance = distance1 + distance2
result = total_distance
return result
|
The speed of light is approximately 299,792,458 meters per second. How many kilometers per hour is this? | def solve() -> int:
speed_of_light_mps = 299792458
speed_of_light_kph = speed_of_light_mps * 3600 / 1000
result = speed_of_light_kph
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.