question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Student: Ana can run for 30 minutes every day. If she runs for 365 days, how many hours does she run for? | def solve() -> int:
minutes_per_day = 30
days_per_year = 365
minutes_per_hour = 60
total_minutes = minutes_per_day * days_per_year
total_hours = total_minutes / minutes_per_hour
result = total_hours
return result
|
At a pet store, 5 aquariums with 10 fish in each tank were sold. Then 3 more tanks with 15 fish in each tank were sold. How many fish in total were sold at the pet store? | def solve() -> int:
aquariums1 = 5
fish_per_aquarium1 = 10
aquariums2 = 3
fish_per_aquarium2 = 15
total_fish_sold = (aquariums1 * fish_per_aquarium1) + (aquariums2 * fish_per_aquarium2)
result = total_fish_sold
return result
|
Jasmine, Joe, and Vasanth went shopping for fruits. Jasmine bought 24 oranges. Joe bought 12 more oranges than Jasmine. Vasanth bought 20 fewer oranges than Joe. How many oranges did they all buy altogether? | def solve() -> int:
total = 0
total = total + 24
total = total + 24 + 12
total = total + 24 + 12 - 20
result = total
return result
|
Billy has 12 stickers and he gives 3 to his friend. Then he buys 5 more stickers from the store. Each sticker costs 25 cents and he pays with a 10-dollar bill. How much change does he get back from the store? | def solve() -> int:
sticker_count = 12 - 3 + 5
sticker_cost = 5 * 0.25
change = 10 - sticker_cost
result = change
return result
|
A football team played 16 games last season and won 75% of them. How many games did the team win? | def solve() -> int:
num_games = 16
win_percent = 0.75
num_wins = num_games * win_percent
result = num_wins
return result
|
A teacher wants to divide a class of 30 students into 5 groups. How many students will be in each group? | def solve() -> int:
students = 30
groups = 5
students_per_group = students / groups
result = students_per_group
return result
|
A grocery store orders 240 cans of soda for $96. If each can costs the same amount, how much does one can of soda cost? | def solve() -> int:
cans = 240
total_cost = 96
cost_per_can = total_cost/cans
result = cost_per_can
return result
|
A recipe calls for 2 cups of flour to make 12 cookies. How many cups of flour are needed to make 30 cookies? | def solve() -> int:
num_cookies = 30
needed_flour = (2/12)*num_cookies
result = needed_flour
return result
|
A pizza costs $10 and a drink costs $2.50. If Tom ordered 2 pizzas and 3 drinks, how much did he spend in total? | def solve() -> int:
pizza_cost = 10
drink_cost = 2.5
num_pizzas = 2
num_drinks = 3
total_cost = (pizza_cost * num_pizzas) + (drink_cost * num_drinks)
result = total_cost
return result
|
arah has 3 times as many pencils as pens. If she has 15 pencils and pens combined, how many pens does she have? | def solve() -> int:
pencils = 15 * 3 / 4
pens = 15 - pencils
result = pens
return result
|
Kyle is a carpenter and he has 10 pieces of furniture to make. Each piece of furniture takes him 5 days to make. If he sells each piece for $200, how much money can he earn in a month? | def solve() -> int:
pieces_of_furniture = 10
days_to_make_one_piece = 5
selling_price = 200
days_in_month = 30
pieces_per_day = 1 / days_to_make_one_piece
pieces_in_month = pieces_per_day * days_in_month
total_earnings = pieces_in_month * selling_price
result = total_earni... |
Student: Mark was able to mow his lawn in 35 minutes. The lawn was 200 meters squared. How many meters, per hour, did Mark mow? | def solve() -> int:
time_in_minutes = 35
area_in_meters_squared = 200
time_in_hours = time_in_minutes / 60
meters_per_hour = area_in_meters_squared / time_in_hours
result = meters_per_hour
return result
|
A store sells a product for $8.50 that costs $6.50 to make. What is the profit made from selling 150 units? | def solve() -> int:
selling_price = 8.5
cost_price = 6.5
units_sold = 150
profit_per_unit = selling_price - cost_price
total_profit = profit_per_unit * units_sold
result = total_profit
return result
|
Ryan bought a shirt that cost $20. If the sales tax rate is 8%, how much did Ryan spend in total with tax? | def solve() -> int:
cost_of_shirt = 20
tax_rate = 0.08
total_cost_with_tax = cost_of_shirt + (cost_of_shirt * tax_rate)
result = total_cost_with_tax
return result
|
A store is offering a 30% discount on all winter clothes. A coat was originally priced at $85.50, a sweater was originally priced at $45.25 and gloves were priced at $7.50. What was the total cost of these winter clothes after the discount? | def solve() -> int:
coat_price = 85.50
sweater_price = 45.25
gloves_price = 7.50
discount = 0.3
coat_discount = coat_price * discount
sweater_discount = sweater_price * discount
gloves_discount = gloves_price * discount
coat_final_price = coat_price - coat_discount
swe... |
In a town, 65% of residents drink coffee and 45% drink tea. If 20% of residents do not drink either coffee or tea, what percentage of residents drink both coffee and tea? | def solve() -> int:
c = 0.65
t = 0.45
neither = 0.2
both = c + t - 1 + neither
result = both
return result
|
Jayden raises money for the local children's center by selling handmade keychains. Jayden makes a total of $300. He uses $75 to purchase more supplies. He donates one-half of the remaining total to the local children's center and the other half to the local soup kitchen. If Jayden also donates $5 from his own savings t... | def solve() -> int:
total_money = 300
supplies_cost = 75
remaining_money = total_money - supplies_cost
donation_to_children_center = remaining_money / 2
donation_to_soup_kitchen = donation_to_children_center
donation_to_soup_kitchen += 5
total_donation = donation_to_children_center + donatio... |
Liam loves to jog every morning and covers a distance of 5 miles in 45 minutes. If he missed jogging for 10 days in May, how many total miles did he cover in the month? | def solve() -> int:
distance_per_day = 5
time_per_day = 45/60
total_days = 31
missed_days = 10
jogged_days = total_days - missed_days
total_distance = jogged_days * distance_per_day
total_time = jogged_days * time_per_day
result = total_distance
ret... |
A librarian asked Harper, Ethan, and Elizabeth to buy books and track their reading patterns for their literacy program. Harper bought half the number of books that Ethan bought, while Elizabeth bought 20 more books than Ethan. If Ethan bought 30 books, what's the average number of books the three bought? | def solve() -> int:
ethan_books = 30
harper_books = ethan_books / 2
elizabeth_books = ethan_books + 20
total_books = ethan_books + harper_books + elizabeth_books
average_books = total_books / 3
result = average_books
return result
|
Student: A recipe calls for 1/2 teaspoon of vanilla extract to make 12 cupcakes. How much vanilla extract is needed to make 36 cupcakes? | def solve() -> int:
vanilla_extract_per_cupcake = 0.5
cupcakes_needed = 36
vanilla_extract_needed = vanilla_extract_per_cupcake * cupcakes_needed
result = vanilla_extract_needed
return result
|
A class of 25 students took a math test. The average score was 80. The teacher gave 5 extra points to each student who scored below 70. What was the new average score after the adjustment? | def solve() -> int:
total_before = 25 * 80
total_after = total_before
count = 0
for score in range(0, 70):
count = count + 1
total_after = total_after + 5
new_average = total_after / 25
result = new_average
return result
|
If James earns $120 in three days, how much does he earn in one day? | def solve() -> int:
total_earning = 120
days = 3
earning_per_day = total_earning / days
result = earning_per_day
return result
|
Student: Sam's fish tank is four times as large as Penny's fish tank. If Sam's fish tank has 32 gallons of water and it's 1/4 empty, how many gallons of water does Penny have in her fish tank if it's 2/3 full? | def solve() -> int:
sam_tank = 32
sam_empty = 1/4
penny_tank = sam_tank / 4
penny_full = 2/3
sam_water = sam_tank * (1 - sam_empty)
penny_water = penny_tank * penny_full
result = penny_water
return result
|
Tom bought a book and a pen for $20. If the pen costs three-fourths the price of the book, how much did the pen cost? | def solve() -> int:
book_price = 20
pen_price = (3/4) * book_price
result = pen_price
return result
|
The Japanese crane can fold and create a maximum of 30 origami figures per hour, while the Chinese crane can fold and create four times as many origami figures as the Japanese crane. If there were 150 cranes in a park, with three times as many Chinese as Japanese cranes, how many origami figures could they create in on... | def solve() -> int:
japanese_crane = 30
chinese_crane = 4 * japanese_crane
total_cranes = 150
chinese_cranes = 3 * (total_cranes / 4)
japanese_cranes = total_cranes / 4
total_origami = (japanese_cranes * japanese_crane) + (chinese_cranes * chinese_crane)
result = total_ori... |
``` The volume of a sphere is 3920.54 cubic meters. What is the radius of the sphere? | def solve() -> int:
volume = 3920.54
radius = ((3*volume) / (4*3.14)) ** (1/3)
result = radius
return result
|
A math test has 20 questions that are each worth 5 points. What percentage of the total possible score did a student get if the student answers 15 questions correctly? | def solve() -> int:
total_questions = 20
points_per_question = 5
correct_questions = 15
total_points = total_questions * points_per_question
earned_points = correct_questions * points_per_question
percentage = (earned_points/total_points) * 100
result = percentage
return result
|
ome possible questions and python programs are: Kevin has 12 marbles. He gives 4 marbles to his friend Laura. Laura already has 7 marbles. They decide to join a marble contest where the winner gets $5 for each marble they have. How much money will Kevin and Laura have together if they both win the contest? | def solve() -> int:
kevin_marbles = 12 - 4
laura_marbles = 7 + 4
money_per_marble = 5
kevin_money = kevin_marbles * money_per_marble
laura_money = laura_marbles * money_per_marble
total_money = kevin_money + laura_money
result = total_money
return result
|
ome possible new questions and programs are: Julie runs 3.5 miles every morning and 1.5 miles every evening. Kelly runs 2 miles every morning and 2.5 miles every evening. How many more miles, in total, does Julie run than Kelly run in 5 days? | def solve() -> int:
julie_morning = 3.5 * 5
julie_evening = 1.5 * 5
julie_total = julie_morning + julie_evening
kelly_morning = 2 * 5
kelly_evening = 2.5 * 5
kelly_total = kelly_morning + kelly_evening
difference = julie_total - kelly_total
result = difference
return ... |
Leo has 20 stickers and he gives some of them to his friends. He gives half of his stickers to Mary, a third of his remaining stickers to Ben, and a quarter of his remaining stickers to Kate. How many stickers does Leo have left? | def solve() -> int:
stickers = 20
stickers = stickers - stickers // 2
stickers = stickers - stickers // 3
stickers = stickers - stickers // 4
result = stickers
return result
|
A cake recipe calls for 3 eggs for every 2 cups of flour. If Jane needs 6 cups of flour, how many eggs will she need? | def solve() -> int:
flour = 6
eggs = (3/2)*flour
result = eggs
return result
|
A recipe for cake requires 3/4th cup of sugar. How much sugar is needed for 2 cakes? | def solve() -> int:
sugar_per_cake = 3/4
cakes_count = 2
total_sugar = sugar_per_cake * cakes_count
result = total_sugar
return result
|
4. Lindsey bought a camera lens for $180 and a tripod for a third of that amount. What was the total amount spent? | def solve() -> int:
lens = 180
tripod = lens / 3
total = lens + tripod
result = total
return result
|
Ivy is a florist who makes bouquets and wreaths. She can make 5 bouquets or 3 wreaths in one hour. She uses 12 flowers to make a bouquet and 15 flowers to make a wreath. She buys each flower for 50 cents and sells each bouquet for $15 and each wreath for $20. She has 300 flowers and 10 hours to work. How much profit do... | def solve() -> int:
wreaths = 300 // 15
flowers_for_wreaths = wreaths * 15
flowers_for_bouquets = 300 - flowers_for_wreaths
bouquets = flowers_for_bouquets // 12
wreath_hours = wreaths / 3
bouquet_hours = bouquets / 5
if wreath_hours + bouquet_hours <= 10:
... |
Student: If a store sells each apple for $0.50 and each orange for $0.35, and Johnny wants to buy 2 apples and 3 oranges, how much money will he spend? | def solve() -> int:
apples = 2
oranges = 3
apple_price = 0.50
orange_price = 0.35
total_cost = apples * apple_price + oranges * orange_price
result = total_cost
return result
|
Julia the gardener grows a beautiful garden of flowers. She successfully sells 50 bouquets to a florist, but when she tries to sell to a hotel, they say her flowers aren't good enough quality and reduce the price by 20%. If Julia earns $8 for every bouquet of flowers she sells, how much money does she make after the pr... | def solve() -> int:
bouquets_sold = 50
price_per_bouquet = 8
discount = 0.2
total_earnings = bouquets_sold * price_per_bouquet
discounted_price = price_per_bouquet - (price_per_bouquet * discount)
earnings_after_discount = bouquets_sold * discounted_price
result = earnings_after_di... |
Jane spent 90 minutes watching TV yesterday. If she plans to watch TV for 30 minutes a day this week, how many fewer minutes will she watch TV this week? Olivia has 18 more green balloons than yellow balloons. She has 4 times as many green balloons as yellow balloons. How many yellow balloons does she have? | def solve() -> int:
total_minutes = 90
minutes_per_day = 30
total_minutes_this_week = minutes_per_day * 7
difference_minutes = total_minutes - total_minutes_this_week
result = difference_minutes
return result
|
Emma makes her own jewelry. She makes it in batches of 10 pieces. She wears 1 piece of jewelry every day. It takes her 40 minutes to make jewelry. How many minutes will she spend making jewelry over 28 days? | def solve() -> int:
days = 28
jewelry_per_batch = 10
jewelry_per_day = 1
minutes_per_jewelry = 40
total_jewelry = days * jewelry_per_day
total_batches = total_jewelry / jewelry_per_batch
total_minutes = total_batches * minutes_per_jewelry
result = total_minutes
return resul... |
Mark had 54 paper clips. He gave away 8 paper clips and split the rest into 3 piles. How many paper clips were in each pile? | def solve() -> int:
clipsleft = 54 - 8
clipseach = clipsleft/3
result = clipseach
return result
|
A pizza place makes a medium pizza for $10, a large pizza for $15 and a family pizza for $20. In a day, the pizza place sells 25 medium pizzas, 15 large pizzas and 10 family pizzas. How much money did the pizza place make in a day? | def solve() -> int:
medium_pizza_cost = 10
large_pizza_cost = 15
family_pizza_cost = 20
medium_pizza_sales = 25
large_pizza_sales = 15
family_pizza_sales = 10
total_sales = (medium_pizza_cost * medium_pizza_sales) + (large_pizza_cost * large_pizza_sales) + (family_pizza_cost * family_pizza_s... |
A car travels at 60 km/h for 2 hours and then at 80 km/h for 1 hour. What is the average speed of the car for the whole journey? | def solve() -> int:
distance = 60 * 2 + 80 * 1
time = 2 + 1
average_speed = distance / time
result = average_speed
return result
|
A triangle has a base of 8 cm and a height of 6 cm. What is the area of the triangle? | def solve() -> int:
area = 0.5*8*6
result = area
return result
|
A recipe for cupcakes calls for 2 cups of flour, 1 cup of sugar, 1/2 cup of butter, and 3 eggs. If Sarah wants to make 24 cupcakes, how much of each ingredient should she use? | def solve() -> int:
flour = 2
sugar = 1
butter = 0.5
eggs = 3
multiply = 24 / 1
total_flour = flour * multiply
total_sugar = sugar * multiply
total_butter = butter * multiply
total_eggs = eggs * multiply
result = total_flour, total_sugar, total_butter, total_eggs
return resul... |
Dylan has 2 bottles of iced tea. One 24-ounce bottle has 80mg of caffeine and the other 16-ounce bottle has 120mg of caffeine. He then drinks a cup of coffee that has 150mg of caffeine. How much caffeine did Dylan consume in total? | def solve() -> int:
bottle1_size = 24
bottle1_caffeine = 80
bottle2_size = 16
bottle2_caffeine = 120
coffee_caffeine = 150
total_caffeine = bottle1_caffeine + bottle2_caffeine + coffee_caffeine
result = total_caffeine
return result
|
Using Pythagoras Theorem, find the length of the hypotenuse in a right triangle where the other two sides are 3 and 4? | def solve() -> int:
from math import sqrt
a = 3
b = 4
c = sqrt(a**2 + b**2)
result = c
return result
|
Emma has a basket with some apples. She ate 3 apples and gave 25% of the remaining apples to her friend. She now has 6 apples left in the basket. How many apples were in the basket initially? | def solve() -> int:
initial_apples = (6 + (3 / 0.75))
result = initial_apples
return result
|
Mr. Johnson has 5 classes with 30 students each. He has to distribute 2 pencils to each student. How many pencils will he need? | def solve() -> int:
num_classes = 5
class_size = 30
num_pencils = 2
total_students = num_classes * class_size
total_pencils = total_students * num_pencils
result = total_pencils
return result
|
A rectangular prism has a length of 5 meters, a width of 2 meters, and a height of 3 meters. Find the volume of the prism. | def solve() -> int:
length = 5
width = 2
height = 3
volume = length * width * height
result = volume
return result
|
Student: Rohan has some apples and oranges. He has 3 times more apples than oranges. If he has 18 oranges, how many apples does Rohan have? | def solve() -> int:
apples = 0
oranges = 0
oranges = 18
apples = 3 * oranges
result = apples
return result
|
Ben reads 20 pages of a book every day. The book has 240 pages in total. How many days does it take him to finish the book? | def solve() -> int:
number_of_days = 240 / 20
result = number_of_days
return result
|
Sarah is making a necklace using a spool of thread that measures 50 meters long. She needs 40 pieces of thread, with each measuring 75 centimeters. How much thread is left? | def solve() -> int:
spool_length = 50
piece_length = 75 / 100
total_pieces = 40
total_thread_used = piece_length * total_pieces
thread_left = spool_length - total_thread_used
result = thread_left
return result
|
Noah wants to save money for a new bike. He has a piggy bank that can hold up to 100 coins. He puts one quarter, one dime, and one nickel in the piggy bank every day. He also gets a dollar bill from his grandma every Sunday, which he exchanges for four quarters at the store. How much money does he have in the piggy ban... | def solve() -> int:
coins_per_day = 1 + 1 + 1
days = 4 * 7
coins = coins_per_day * days
quarters_from_grandma = 4 * 4
coins = coins + quarters_from_grandma
if coins > 100:
coins = 100
quarter_value = 25
dime_value = 10
nickel_value = 5
quarters = coins // 3
dimes = coin... |
Sarah earned $1000 this month. She spent 20% of her earnings and saved the rest. How much did she save? | def solve() -> int:
income = 1000
expenses = income * 0.2
savings = income - expenses
result = savings
return result
|
Q2: Tina bakes a cake and cuts it into 12 equal slices. She eats one slice and gives two slices to her brother. Then she puts the rest of the cake in a container that can hold 800 grams of cake. If each slice of cake weighs 75 grams, how much empty space is left in the container? | def solve() -> int:
total_weight = 9 * 75
empty_space = 800 - total_weight
result = empty_space
return result
|
Mark has a cake with 12 slices. He ate 3/4 of the cake. How many slices are left? | def solve() -> int:
slices = 12
eaten_slices = slices * 3/4
remaining_slices = slices - eaten_slices
result = remaining_slices
return result
|
A travel agency is organizing a tour. Each bus can hold up to 50 tourists. If they have 4 fully-booked buses, how many tourists are going on the tour? | def solve() -> int:
bus_capacity = 50
num_buses = 4
total_tourists = bus_capacity * num_buses
result = total_tourists
return result
|
A software company has 50 employees, including 12 interns. If the company's revenue for the year is $500,000, and each employee receives a bonus of 2% of the revenue, how much will each employee receive as a bonus? | def solve() -> int:
num_of_employees = 50
num_of_interns = 12
revenue = 500000
employee_bonus = 0.02
total_employee_bonus = (num_of_employees - num_of_interns) * revenue * employee_bonus
bonus_per_employee = total_employee_bonus / (num_of_employees - num_of_interns)
result = bonus_per_e... |
Mary was picking up shells on the beach one day and found a bucket filled with five starfish, eight scallop shells, and six angel stones. If the number of angel stones was three times the number of starfish, and the number of scallop shells was double the number of angel stones, how many shells did Mary find in the buc... | def solve() -> int:
shells = 0
shells = shells + 5
shells = shells + (8 * 2)
shells = shells + (6 * 3)
result = shells
return result
|
Ocean View Shelter has a group of dogs. Forty percent of the dogs are males, and the remaining are females. Out of the female dogs, 35% are young puppies. If there are 10 adult female dogs, how many male dogs are there at Ocean View Shelter? | def solve() -> int:
total_dogs = 100
male_dogs = total_dogs * 0.4
female_dogs = total_dogs - male_dogs
adult_female_dogs = female_dogs - (female_dogs * 0.35)
male_dogs = male_dogs - (female_dogs - adult_female_dogs)
result = male_dogs
return result
|
Emma has to replace 3 light bulbs in her room, 1 in her lamp and 2 in her ceiling fan. She also needs to replace 1/6 of that amount in her bathroom. If the bulbs come 2 per pack, how many packs will she need? On Monday, a grocery store had 500 apples in stock. On Tuesday, they ordered 300 more apples and sold 200 apple... | def solve() -> int:
lamp = 1
ceiling_fan = 2
total_bulbs = lamp + ceiling_fan
bathroom = total_bulbs / 6
total_bulbs += bathroom
packs_needed = (total_bulbs / 2) + 0.5
apples_in_stock = 500
apples_in_stock += 300
apples_in_stock -= 200
apples_in_stock += 1500
apples_in_stock... |
A box contains 24 packs of pencils. Each pack contains 12 pencils. How many pencils are in the box? | def solve() -> int:
packs_in_box = 24
pencils_per_pack = 12
total_pencils = packs_in_box * pencils_per_pack
result = total_pencils
return result
|
Student: Ryan has 27 baseballs. He gave 4 baseballs to John and 3 more baseballs to Christy. How many baseballs does Ryan have left? | def solve() -> int:
baseballs = 27
baseballs = baseballs - 4
baseballs = baseballs - 3
result = baseballs
return result
|
Alice has a broken faucet that drips 5 drops a second into a bucket. Each drop is 15 ml, and the bucket can hold 4 gallons. How long will it take the bucket to overflow? | def solve() -> int:
rate = 5 * 0.015
capacity = 4 * 3.785
time = capacity / rate
minutes = time / 60
hours = minutes / 60
result = f'It will take {hours:.2f} hours or {minutes:.2f} minutes for the bucket to overflow.'
return result
|
A rectangle has a width of 5 cm and a perimeter of 22 cm. What is the length of the rectangle? | def solve() -> int:
width = 5
perimeter = 22
length = (perimeter - 2*width) / 2
result = length
return result
|
A box of 36 pencils costs $12. How much does one pencil cost? | def solve() -> int:
cost = 12
pencils = 36
cost_per_pencil = cost/pencils
result = cost_per_pencil
return result
|
Student: 3. Tiffany is trying to fill a 9-liter tank with water. She pours in a 2-quart container of water. How many liters of water does Tiffany have left in the tank? | def solve() -> int:
tank_capacity = 9
container_capacity = 2
container_capacity_in_liters = container_capacity * 0.946
result = tank_capacity - container_capacity_in_liters
return result
|
Ben is dividing his candy among his friends. He has 36 pieces of candy and he wants to give each of his friends the same amount. He also wants to keep some candy for himself. If he can give at most 6 pieces of candy to each friend and he wants to keep at least 3 pieces of candy for himself, how many friends can he shar... | def solve() -> int:
candy = 36
max_per_friend = 6
min_self = 3
max_friends = (candy - min_self) // max_per_friend
candy_per_friend = max_per_friend
candy_self = candy - max_friends * candy_per_friend
result = (max_friends, candy_per_friend, candy_self)
return result
|
She eats 3 apples and double the number of oranges she bought. How many bananas does Olivia have left? | def solve() -> int:
apples_start = 9
oranges_start = 15
bananas_start = 18
apples_eaten = 3
oranges_eaten = oranges_start * 2
total_eaten = apples_eaten + oranges_eaten
bananas_remaining = bananas_start - total_eaten
result = bananas_remaining
return result
|
There were 765 balls in a basket. Jack took 124 balls and Jill took 223 balls. How many balls are still in the basket? | def solve() -> int:
basket_size = 765
jack_balls = 124
jill_balls = 223
remaining_balls = basket_size - jack_balls - jill_balls
result = remaining_balls
return result
|
All movies named Toy Story are animated, while only a third of movies named Indiana Jones are animated. A half of movies named The Lion KingA nail salon uses a special polish for each hand and foot. Each hand needs 2ml of the special polish, and each foot requires 5ml of the same polish. In one day, the salon served 25... | def solve() -> int:
result = 5.2
return result
|
Lily planted 24 flowers; Max planted 8 less than Lily. Nora planted four times as many as Max. How many flowers did they plant in all? | def solve() -> int:
lily = 24
max = lily - 8
nora = 4 * max
total = lily + max + nora
result = total
return result
|
Michael has a book collection with 150 books. For every 3 books he reads, he donates 1 to the library. How many books did Michael donate to the library? | def solve() -> int:
books_collection = 150
books_read = 3
books_donated = books_read // 3
result = books_donated
return result
|
On a Saturday morning, Sally and Sarah planned to walk to the grocery store. Sally walked at a slow pace and took 20 minutes to make it to the store, while Sarah took 25 minutes to make it there walking at a faster pace. On the way back, they both decided to walk together and took 19 minutes to get back. What was their... | def solve() -> int:
wayToTime = 20 + 25
wayFromTime = 19
totalTime = wayToTime + wayFromTime
wayToDistance = 1
wayFromDistance = 1
totalDistance = wayToDistance + wayFromDistance
averageSpeed = totalDistance / totalTime
result = averageSpeed
return result
|
There are 9 yellow balls and 4 blue balls in a bag. How many balls are in the bag in total? | def solve() -> int:
number_of_yellow_balls = 9
number_of_blue_balls = 4
total_number_of_balls = number_of_yellow_balls + number_of_blue_balls
result = total_number_of_balls
return result
|
Jed gave Abe double as many stamps as he had. Abe then gave Lily 3 times as many stamps as he had. If Lily ended up with 60 stamps, how many stamps did Jed have? | def solve() -> int:
stamps_abe = 60 / 3
stamps_jed = 2 * stamps_abe
result = stamps_jed
return result
|
Oliver’s cat weighs 25 pounds; it weighs 5 times as much as Lily’s cat. Together, what is the weight of the cats? | def solve() -> int:
oliver_cat_weight = 25
lily_cat_weight = oliver_cat_weight / 5
total_weight = oliver_cat_weight + lily_cat_weight
result = total_weight
return result
|
At the movie theater, there are one-third as many seats in theater 2 as there are in theater 1. However, there are five times as many seats in theater 3 as theater 2, and there are half as many seats in theater 4 as there are in theater 3. If there are 20 seats in theater 4, how many seats are there in theater 1? | def solve() -> int:
theater_4_seats = 20
theater_3_seats = 2 * theater_4_seats
theater_2_seats = theater_3_seats / 5
theater_1_seats = 3 * theater_2_seats
result = theater_1_seats
return result
|
What is the total length of plywood that Mark needs to buy, in feet, for a table he is creating if the table has length 48 inches and a width of 18 inches? | def solve() -> int:
length = 48
width = 18
length_in_feet = (length/12) + (width/12)
result = length_in_feet
return result
|
In a store, there were 30 customers initially. After 10 minutes, 15 more customers arrived. The total number of customers tripled after an hour. If only 90 customers were there at the end, how many left before then? | def solve() -> int:
initial_customers = 30
arrived_customers = 15
total_customers_10min = initial_customers + arrived_customers
total_customers_1hour = total_customers_10min * 3
left_customers = total_customers_1hour - 90
result = left_customers
return result
|
Emma was baking cookies for her friends. She had a recipe that made 24 cookies and required 2 eggs, 150 grams of flour, and 100 grams of chocolate chips. She wanted to make 36 cookies and had 4 eggs, 250 grams of flour, and 200 grams of chocolate chips. How much of each ingredient did she use? | def solve() -> int:
x = 4 / 2
y = 150 * x
z = 100 * x
result = 'Emma used 4 eggs, 300 grams of flour, and 200 grams of chocolate chips'
return result
|
Sarah runs a bakery. She makes 3 cakes for one customer and 8 cakes for another customer each day. How many cakes does she make in a week? | def solve() -> int:
cakes_per_customer1 = 3
cakes_per_customer2 = 8
days_in_week = 7
total_cakes = cakes_per_customer1 + cakes_per_customer2
total_cakes_week = total_cakes * days_in_week
result = total_cakes_week
return result
|
Student: 7. Kareen drives her two children separate places each day. Drop offs are 7 days a week. She drives 8 miles to one child's school and 15 miles to the other. How many total miles does she drive in a year? | def solve() -> int:
days_per_week = 7
miles_to_child1 = 8
miles_to_child2 = 15
total_miles_per_day = miles_to_child1 + miles_to_child2
total_miles_per_week = total_miles_per_day * days_per_week
total_miles_per_year = total_miles_per_week * 52
result = total_miles_per_year
return result
|
Liam has 30 crayons. One-sixth of the crayons are broken. If he throws away 5 broken crayons, how many crayons does Liam have left? | def solve() -> int:
crayons = 30
broken_crayons = crayons / 6
remaining_crayons = crayons - broken_crayons
remaining_crayons -= 5
result = remaining_crayons
return result
|
If a car travels 200 miles in 4 hours, what is its average speed in miles per hour? | def solve() -> int:
distance = 200
time = 4
average_speed = distance / time
result = average_speed
return result
|
Alice has 11 times as many stamps as Bob. Bob has eight more stamps than Claire. If Alice has 121 stamps, how many stamps does Claire have? | def solve() -> int:
bob = 121 / 11
claire = bob - 8
result = claire
return result
|
Student: 3. Mike started running when he was 14. He could run 5 km in 12 minutes and 6 km in 18 minutes. He manages to improve his speed by 20%. What is his new total running capacity? | def solve() -> int:
start_age = 14
start_speed_5km = 12
start_speed_6km = 18
improvement_percentage = 20
new_speed_5km = start_speed_5km * (1 - improvement_percentage/100)
new_speed_6km = start_speed_6km * (1 - improvement_percentage/100)
new_total_running_capacity = 5/new_speed_5km + 6/new_... |
The mega boxes of tissues contain 120 tissues and cost $12 each. The small boxes contain 20 tissues and cost $2 each. How much money can be saved by buying a mega box instead of smaller boxes for the same number of tissues? | def solve() -> int:
tissues_needed = 240
mega_boxes_needed = tissues_needed // 120
small_boxes_needed = (tissues_needed % 120) // 20
mega_box_cost = mega_boxes_needed * 12
small_box_cost = small_boxes_needed * 2
total_cost = mega_box_cost + small_box_cost
cost_s... |
The tailor sewed four buttons on a shirt. The first button was 2 cm from the collar, the second was 4 cm from the first, and the third was 3 cm from the second. If the distance between the collar and the last button was 15 cm, how far was the fourth button from the third? | def solve() -> int:
distance_of_fourth = 15 - (2 + 4 + 3)
result = distance_of_fourth
return result
|
The cost of a shirt is $25.00, including sales tax of 5%. What was the price of the shirt before tax? | def solve() -> int:
price_with_tax = 25.00
tax_rate = 0.05
price_without_tax = price_with_tax / (1 + tax_rate)
result = round(price_without_tax, 2)
return result
|
ara bought 10 pieces of paper for $1.50 each and 8 notebooks for $4.00 each. How much money did Sara spend in total? | def solve() -> int:
price_paper = 1.50
price_notebook = 4
num_paper = 10
num_notebook = 8
total_price_paper = price_paper * num_paper
total_price_notebook = price_notebook * num_notebook
total_price = total_price_paper + total_price_notebook
result = total_price
... |
A bag is marked down from $300 to $120. By what percentage was it discounted? | def solve() -> int:
price1 = 300
price2 = 120
diff = (price1 - price2)
percent_disc = (diff / price1) * 100
result = percent_disc
return result
|
If a pizza has a circumference of 24 inches, what is the diameter of the pizza in inches? | def solve() -> int:
circumference = 24
pi = 3.14
diameter = circumference / pi
result = diameter
return result
|
Sarah has 12 bathrobes. She uses 1 bathrobe after each shower and washes them at the end of the week. If she missed washing her bathrobes last week, how many days will she have to reuse dirty bathrobes before she can use clean ones again? Sarah turned 18 the same time Olivia turned 30. Tim is 3 years less than three ti... | def solve() -> int:
bathrobes = 12
days_in_a_week = 7
days_without_washing = days_in_a_week - 1
days_to_reuse_dirty_bathrobes = days_without_washing * bathrobes
Sarah_age = 18
Olivia_age = 30
Tim_age = 87
three_times_Olivia_age = 3 * Olivia_age
Tim_age_difference = Tim_age ... |
Keli is buying a new laptop for her college classes, if the laptop is $600 and there is a 10% discount if she uses her student ID, how much will she pay? | def solve() -> int:
price = 600
discount = 1 - 0.10
total = price * discount
result = total
return result
|
Student: Jake has 10 pencils. He loses 3 pencils and buys 4 more. He then gives 2 pencils to his sister, Kate. Kate has 7 pencils. She uses 3 pencils and finds 1 more. How many pencils do Jake and Kate have altogether? | def solve() -> int:
jake_pencils = 10
jake_pencils = jake_pencils - 3 + 4
kate_pencils = 7 + 2
kate_pencils = kate_pencils - 3 + 1
result = jake_pencils + kate_pencils
return result
|
There are 6 blue balls, 4 red balls, and 2 green balls in a bag. What is the probability of picking a blue ball and then a red ball if the first ball is not put back into the bag? | def solve() -> int:
total_balls = 12
blue_balls = 6
red_balls = 4
green_balls = 2
prob_blue = blue_balls / total_balls
prob_red = red_balls / (total_balls - 1)
result = prob_blue*prob_red
return result
|
Tom plants a garden with daffodils, roses, and tulips. There are twice as many tulips as daffodils, and 3 fewer roses than daffodils. If there are 9 daffodils, how many tulips does Tom have in his garden? | def solve() -> int:
daffodils = 9
roses = daffodils - 3
tulips = 2 * daffodils
result = tulips
return result
|
On Monday, Martha bought 35 pencils and on Tuesday, she bought 20 more. If there were 8 pencils in each box, how many pencils did she buy in total? | def solve() -> int:
monday_pencils = 35
tuesday_pencils = monday_pencils + 20
pencils_per_box = 8
total_pencils = tuesday_pencils * pencils_per_box
result = total_pencils
return result
|
A policeman has to catch a thief who is 100 meters away. The policeman can run 6 meters per second and the thief is running at 10 meters per second. How long will it take for the policeman to catch the thief? | def solve() -> int:
distance = 100
policeman_speed = 6
thief_speed = 10
time = distance / (thief_speed - policeman_speed)
result = time
return result
|
A church is offering a fundraiser one day where they donate $2 for every $10 donated by members. The average member donates $3 and there are 100 members that day. How much does the church donate? | def solve() -> int:
num_members = 100
donation_per_member = 3
total_donation = num_members * donation_per_member
church_donation_per_10 = 2
num_10_donations = total_donation // 10
church_donation = num_10_donations * church_donation_per_10
result = church_donati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.