question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Student: Sarah ran 3 miles today and plans to increase her distance by 25% each day. How far will she run on day 4? | def solve() -> int:
distance_day1 = 3
increase_distance = distance_day1 * 0.25
distance_day4 = distance_day1 + (3 * increase_distance)
result = distance_day4
return result
|
A cylindrical tank has a radius of 5 cm and a height of 20 cm. What is the volume of the tank in cubic cm? | def solve() -> int:
radius = 5
height = 20
pi = 3.141592
volume = pi*radius**2*height
result = volume
return result
|
Ben is baking cookies for a school fundraiser. He has enough ingredients to make 120 cookies. Each batch of cookies takes 15 minutes to bake and 10 minutes to cool down. He can fit 24 cookies in his oven at a time. How long does it take him to bake all the cookies? | def solve() -> int:
batches = 120 / 24
time_per_batch = 15 + 10
total_time = batches * time_per_batch
result = total_time
return result
|
There are 15 cars in a parking lot. 5 of them are red and 3 of them are black. How many cars of other colors are there? | def solve() -> int:
cars_total = 15
cars_red = 5
cars_black = 3
cars_other = cars_total - cars_red - cars_black
result = cars_other
return result
|
Possible questions and programs: Olivia's bike can travel at 12 miles per hour. Her skateboard can travel at 8 miles per hour. She starts with her bike and rides for 30 minutes, then switches to her skateboard. In hours, how long will it take for her to travel 10 miles? | def solve() -> int:
bike_speed = 12
skate_speed = 8
bike_time = 0.5
total_distance = 10
bike_distance = bike_speed * bike_time
skate_distance = total_distance - bike_distance
skate_time = skate_distance / skate_speed
total_time = bike_time + skate_time
re... |
Maria buys a pack of 24 cupcakes for her birthday party and she invites 8 friends. She wants to divide the cupcakes equally among herself and her friends, but she also wants to save 2 cupcakes for her brother. How many cupcakes does each person get at the party? | def solve() -> int:
cupcakes = 24
brother_cupcakes = 2
people = 8 + 1
cupcakes_per_person = (cupcakes - brother_cupcakes) // people
result = cupcakes_per_person
return result
|
Student: A rectangle has a width of 8cm and a perimeter of 26cm. Calculate the length of the rectangle. | def solve() -> int:
width = 8
perimeter = 26
length = perimeter - 2 * width
result = length
return result
|
Student: Joe is 12 times as happy as his neighbor while Kim is 13 times as happy as Joe. If Joe has a happiness score of 60, what is the happiness score of Kim? | def solve() -> int:
joe = 60
neighbor = joe / 12
kim = joe * 13
result = kim
return result
|
A recipe calls for 2 cups of flour for every 3 cups of sugar. If you have 6 cups of flour, how much sugar do you need? | def solve() -> int:
flour = 6
sugar = 3/2 * flour
result = sugar
return result
|
Student: Heidi has 26 apples, she wants to put in a basket. Each basket can fit 13 apples. How many baskets will she need to put all the apples? | def solve() -> int:
apples = 26
basket_capacity = 13
baskets_needed = apples // basket_capacity
remaining_apples = apples % basket_capacity
total_baskets = baskets_needed + (1 if remaining_apples > 0 else 0)
result = total_baskets
return result
|
A soup recipe requires 2 cups of broth and 1 cup of vegetables. If you want to make 5 servings of soup, but only have 9 cups of broth, how many cups of vegetables do you need? | def solve() -> int:
broth = 2
vegetables = 1
servings = 5
total_broth = 9
available_servings = total_broth // broth
total_vegetables = available_servings * vegetables
result = total_vegetables
return result
|
Hugo has a rectangular garden that measures 12 meters by 8 meters. He wants to plant flowers along the perimeter of the garden. He can plant one flower every 20 centimeters. How many flowers does he need to buy? | def solve() -> int:
perimeter = 12 + 12 + 8 + 8
flowers_per_meter = 100 / 20
result = perimeter * flowers_per_meter
return result
|
Jim ate 4 slices of pizza. If each pizza has 8 slices, how many pizzas did he eat? | def solve() -> int:
slices = 4
pizzas = slices / 8
result = pizzas
return result
|
Student: A painter uses different colors of paint to create a mural. He uses 20 liters of red paint, 15 liters of blue paint, and 10 liters of yellow paint on Monday. On Tuesday he uses half as much red paint as he did on Monday, twice as much blue paint, and the same amount of yellow paint. On Wednesday he uses 5 more... | def solve() -> int:
red_paint_monday = 20
blue_paint_monday = 15
yellow_paint_monday = 10
red_paint_tuesday = red_paint_monday / 2
blue_paint_tuesday = blue_paint_monday * 2
yellow_paint_tuesday = yellow_paint_monday
red_paint_wednesday = red_paint_tuesday + 5
blue_paint_wednesday = blue... |
If a person travels in a truck at 35 km per hour and a motorbike at 55km per hour, calculate the total distance travelled by them in 4 hours. | def solve() -> int:
distance_total = 0
speed_truck = 35
speed_motorbike = 55
time_total = 4
distance_total = (speed_truck + speed_motorbike) * time_total
result = distance_total
return result
|
Student: A rectangle has a length of 10 cm and a width of 5 cm. What is the area of the rectangle? | def solve() -> int:
length = 10
width = 5
area = length * width
result = area
return result
|
Khaled and Hala bought some candies from a store. Khaled bought 3 packs with 16 candies in each pack. Hala bought 4 packs with 12 candies in each pack. They gave away half of their candies to their friends. How many candies did they have left? | def solve() -> int:
khaled_candies = 3 * 16
hala_candies = 4 * 12
given_away = (khaled_candies + hala_candies) // 2
left = khaled_candies + hala_candies - given_away
result = left
return result
|
Student: Malenna needed to buy some envelopes for a school project. She found 3 yellow envelopes and 2 blue envelopes. How many more yellow than blue envelopes did she find? | def solve() -> int:
yellow_envelopes = 3
blue_envelopes = 2
difference = yellow_envelopes - blue_envelopes
result = difference
return result
|
There are 150 students in a class. Of these students, 15% are boys and the rest are girls. How many boys are in this class? | def solve() -> int:
total_students = 150
boys_percentage = 0.15
boys = boys_percentage * total_students
result = boys
return result
|
Olivia provides pet sitting services. She takes care of 10 pets every day. Each pet requires 2 hours of care. She charges $15 per hour. How much money does she make per week? | def solve() -> int:
pets_per_day = 10
hours_per_pet = 2
hourly_rate = 15
pets_per_week = pets_per_day * 7
hours_per_week = pets_per_week * hours_per_pet
money_per_week = hours_per_week * hourly_rate
result = money_per_week
return result
|
The area of a triangle is 25 square feet and its height is 5 feet. What is the length of its base? | def solve() -> int:
triangle_area = 25
triangle_height = 5
triangle_base = (2 * triangle_area) / triangle_height
result = triangle_base
return result
|
Tim has 6 coins in his pocket. He has 2 quarters, 3 dimes, and 1 nickel. How much money does he have in total? | def solve() -> int:
quarters = 2
quarter_value = 25
dimes = 3
dime_value = 10
nickel = 1
nickel_value = 5
total_cents = quarters * quarter_value + dimes * dime_value + nickel * nickel_value
total_dollars = total_cents / 100
result = total_dollars
return result
|
A class of 20 students has a test with 10 questions. Each question is worth 4 points. The average score of the class is 28 points. If the teacher decides to drop the lowest score and recalculate the average, what is the new average score of the class? | def solve() -> int:
average = 28
students = 20
questions = 10
points = 4
total = average * students
lowest = 0 * points
adjusted = total - lowest
adjusted_students = students - 1
new_average = adjusted / adjusted_students
result = new_average
return result
|
Possible new questions are: A bakery sells three types of cakes: chocolate, vanilla and lemon. In one week, they sold 45 chocolate cakes, 36 vanilla cakes and 27 lemon cakes. Each chocolate cake costs $12, each vanilla cake costs $10 and each lemon cake costs $8. What is the average revenue per cake, in dollars, for th... | def solve() -> int:
total_revenue = 45 * 12 + 36 * 10 + 27 * 8
total_cakes = 45 + 36 + 27
average_revenue = total_revenue / total_cakes
result = average_revenue
return result
|
A banana has 105 calories and 3 grams of fiber. A cup of yogurt has 150 calories and 4 grams of protein. If Anna eats 2 bananas and a cup of yogurt for breakfast, how many calories, grams of fiber, and grams of protein has she consumed? | def solve() -> int:
bananas = 2
yogurt = 1
calories_per_banana = 105
fiber_per_banana = 3
calories_per_yogurt = 150
protein_per_yogurt = 4
calories_consumed = (bananas * calories_per_banana) + (yogurt * calories_per_yogurt)
fiber_consumed = bananas * fiber_per_banana
protein_... |
A construction worker can build a wall in 6 hours. How long does it take 3 workers to build the same wall? | def solve() -> int:
time = 6/3
result = time
return result
|
If there are 700 mobile phones in a store, and 80% of them were sold, how many mobile phones are available in the store now? | def solve() -> int:
phones_in_store = 700
sold_percentage = 80
sold_phones = phones_in_store * (sold_percentage / 100)
available_phones = phones_in_store - sold_phones
result = available_phones
return result
|
John is baking cookies and needs 1.5 cups of sugar. He has a 5 lb bag of sugar that costs $3.50. How much will he spend on sugar if 1 cup of sugar weighs 0.75 lbs? | def solve() -> int:
cups_of_sugar = 1.5
lbs_per_cup = 0.75
total_lbs = cups_of_sugar * lbs_per_cup
cost_per_lb = 3.50 / 5
total_cost = total_lbs * cost_per_lb
result = total_cost
return result
|
Mandy has twice as many books as Brad has. If Brad has 36 books, how many books does Mandy have? | def solve() -> int:
brad_books = 36
mandy_books = brad_books * 2
result = mandy_books
return result
|
A company produced 1000 units, with 90% of them meeting quality standards. If they want to increase the percentage of units meeting quality standards to 95%, how many more units need to be produced perfectly? | def solve() -> int:
total_units = 1000
current_percentage = 90
desired_percentage = 95
current_perfect_units = (current_percentage / 100) * total_units
desired_perfect_units = (desired_percentage / 100) * total_units
additional_perfect_units = desired_perfect_units - current_perfect_un... |
At a picnic, there were 30 sandwiches and 14 pieces of fruit. By the end of the picnic, the number of leftover sandwiches and fruit were equal due to some guests taking more fruit. How many pieces of fruit were taken home by the guests? | def solve() -> int:
sandwiches = 30
fruit = 14
leftover_sandwiches = sandwiches % fruit
leftover_fruit = fruit % sandwiches
if leftover_sandwiches == leftover_fruit:
fruit_taken_home = fruit - leftover_fruit
else:
fruit_taken_home = 0
result = fruit_taken_home
... |
A rectangle has a length of 10 cm and a width of 5 cm. What is its perimeter in centimeters? | def solve() -> int:
length = 10
width = 5
perimeter = 2*(length + width)
result = perimeter
return result
|
Ben and Chloe are both knitting sweaters. Ben can knit 15 sweaters every hour and Chloe can knit 10 every hour. If Ben takes a four-hour break, what is the difference between the number of sweaters they knit after 6 hours? | def solve() -> int:
ben_sweaters_per_hour = 15
chloe_sweaters_per_hour = 10
ben_hours_worked = 6
chloe_hours_worked = 6
ben_sweaters = ben_sweaters_per_hour * (ben_hours_worked - 4)
chloe_sweaters = chloe_sweaters_per_hour * chloe_hours_worked
difference = ben_sweaters - chloe... |
Student: Amy and Ben are collecting coins for a charity. Amy has 20 quarters and 15 nickels. Ben has 10 quarters and 25 dimes. How much more money does Amy have than Ben? | def solve() -> int:
quarter = 0.25
nickel = 0.05
dime = 0.10
amy_quarters = 20
amy_nickels = 15
amy_total = (amy_quarters * quarter) + (amy_nickels * nickel)
ben_quarters = 10
ben_dimes = 25
ben_total = (ben_quarters * quarter) + (ben_dimes * dime)
result = amy_total - ben_total
... |
A toy store is closed for 7 days during the summer break. During each day during this time, the toy shop could have earned 8 hundred dollars. How much potential revenue did the toy store lose during 6 years of activity? | def solve() -> int:
days_closed = 7
potential_earnings_per_day = 800
years_of_activity = 6
total_days_closed = days_closed * years_of_activity
potential_revenue_lost = total_days_closed * potential_earnings_per_day
result = potential_revenue_lost
return result
|
If an item with a current price of $80 is reduced by 30%, what is the sale price? | def solve() -> int:
current_price = 80
discount = 0.3
sale_price = current_price*(1-discount)
result = sale_price
return result
|
arah has $100 and wants to buy a new pair of shoes that cost $35. If she also wants to buy a shirt that costs $20, can she afford both items? | def solve() -> int:
money = 100
shoe_cost = 35
shirt_cost = 20
total_cost = shoe_cost + shirt_cost
if money >= total_cost:
can_afford = "yes"
else:
can_afford = "no"
result = can_afford
return result
|
Priya set aside $25 for her next purchase. If she gets a 15% discount off that purchase, how much does she end up paying? | def solve() -> int:
initial_amount = 25
discount_rate = 0.15
discount_amount = initial_amount * discount_rate
final_amount = initial_amount - discount_amount
result = round(final_amount, 2)
return result
|
Rachel earns $5500 a month. She pays $1800 in rent, $250 on utilities, $500 in car payments, $300 on groceries, and $150 on miscellaneous expenses. If she is saving $1000 every month and investing $200, how much does she have left over every month? | def solve() -> int:
income = 5500
rent = 1800
utilities = 250
car_payments = 500
groceries = 300
misc_expenses = 150
savings_goal = 1000
investment = 200
left_over = income - rent - utilities - car_payments - groceries - misc_expenses - savings_goal - investment
result = left_ove... |
A triangle has a base of 8 feet and a height of 5 feet. What is the area of the triangle? | def solve() -> int:
area = (8 * 5) / 2
result = area
return result
|
Possible questions and programs: Annie bought some chocolates at the candy store. She paid $24 for 8 chocolate bars and 16 lollipops. Each chocolate bar costs twice as much as a lollipop. How much did each lollipop cost? | def solve() -> int:
lollipop_price = 3/4
result = round(lollipop_price, 2)
return result
|
Possible new questions and programs are: -There are 9 frogs and 4 snakes in the pond. How many eyes are there in the pond? | def solve() -> int:
frog_eyes = 9 * 2
snake_eyes = 4 * 2
total_eyes = frog_eyes + snake_eyes
result = total_eyes
return result
|
A pizza restaurant sells pizza by the slice for $2.50 each. They sell 12 pizzas. Each pizza has 8 slices. How much money do they make? | def solve() -> int:
pies = 12
slices = pies * 8
money = slices * 2.5
result = money
return result
|
6) Sally has 11 toys. She bought 3 toys and gave away 1 toy. How many toys does Sally have now? | def solve() -> int:
total = 11
total += 2
result = total
return result
|
Student: Sarah saved $1.50 each week for 56 weeks to buy a new gadget. After buying the gadget, she had $35 remaining. How much did the gadget cost? | def solve() -> int:
saved_per_week = 1.50
weeks = 56
remaining = 35
total_saved = saved_per_week * weeks
cost_of_gadget = total_saved - remaining
result = cost_of_gadget
return result
|
There are 12 slices of cheese on each platter. If Sarah's three sisters each ate one-fourth of the slices on their respective platters, how many slices of cheese are left altogether? | def solve() -> int:
platter_slices = 12
sisters = 3
slices_eaten = sisters * (platter_slices * 1/4)
slices_left = platter_slices - slices_eaten
result = slices_left
return result
|
A store has 50 shirts in stock. 15 are blue, 10 are red, 5 are yellow, and the rest are green. If there are three times as many green shirts as there are yellow shirts, how many shirts are green? | def solve() -> int:
yellow_shirts = 5
green_shirts = 3 * yellow_shirts
total_shirts = 50
blue_shirts = 15
red_shirts = 10
green_shirts = total_shirts - (blue_shirts + red_shirts + yellow_shirts)
result = green_shirts
return result
|
Emma and Ethan went to the library to borrow some books for their summer reading. Emma borrowed six fiction books and four non-fiction books. Ethan borrowed eight fiction books and two non-fiction books. If they want to read the same number of books in each genre, how many books do they need to exchange with each other... | def solve() -> int:
emma_fiction = 6
emma_non_fiction = 4
ethan_fiction = 8
ethan_non_fiction = 2
average_fiction = (emma_fiction + ethan_fiction) / 2
average_non_fiction = (emma_non_fiction + ethan_non_fiction) / 2
emma_fiction_difference = abs(emma_fiction - average_fiction)
emma_non_f... |
A car travels at a speed of 60 km/h for 4 hours. It increases the speed by 20 km/h and travels for another 3 hours. What is the total distance covered by the car? | def solve() -> int:
distance1 = 60*4
distance2 = (60+20)*3
total_distance = distance1 + distance2
result = total_distance
return result
|
Lily and Mason want to buy a $180.00 bicycle for their cousin's birthday gift. Lily has $55.00 and Mason has $70.00 in their bank account. Lily then sells some old clothes for $20.00, and Mason helps his dad at his construction site for $15.00. How much more money will they need to buy the bicycle for their cousin? | def solve() -> int:
lily_bank_account = 55.00
mason_bank_account = 70.00
lily_sell_clothes = 20.00
mason_help_dad = 15.00
bicycle_cost = 180.00
total_money = lily_bank_account + mason_bank_account + lily_sell_clothes + mason_help_dad
money_needed = bicycle_cost - total_money
re... |
John has 5 apples and gives 2 to his friend. His friend then gives him 3 oranges. If each apple costs 10 cents and each orange costs 15 cents, what is the final cost of John's fruit? | def solve() -> int:
apples = 5 - 2
oranges = 3
apple_cost = apples * 10
orange_cost = oranges * 15
total_cost = apple_cost + orange_cost
result = total_cost
return result
|
John needs to buy 10 pens that cost $1.20 each and 5 notebooks that cost $2 each. If he only has $20, how much money will he have left after buying all the pens and notebooks he needs? | def solve() -> int:
pens_cost = 10 * 1.2
notebooks_cost = 5 * 2
total_cost = pens_cost + notebooks_cost
remaining_money = 20 - total_cost
result = remaining_money
return result
|
The mechanic is fixing a car. There are 4 parts that need to be replaced, a certain number that need to be repaired, and one-third that number that require no work. If there are 15 parts in total, how many need to be repaired? | def solve() -> int:
total_parts = 15
parts_replaced = 4
parts_no_work = total_parts / 3
parts_need_repair = total_parts - parts_replaced - parts_no_work
result = parts_need_repair
return result
|
A recipe for pancakes calls for 2 cups of flour and makes 8 pancakes. How many pancakes can be made with 5 cups of flour? | def solve() -> int:
flour = 5
pancakes = (flour/2)*8
result = pancakes
return result
|
A runner jogs at a speed of 8 miles per hour for 2 hours. He then walks at a speed of 4 miles per hour for 1 hour. How far did he travel in total? | def solve() -> int:
distance_jog = 8*2
distance_walk = 4*1
total_distance = distance_jog + distance_walk
result = total_distance
return result
|
Sam completes 6 50-question practice tests and one 25-question quiz. How many questions does he answer in total? | def solve() -> int:
num_practice_tests = 6
num_questions_per_test = 50
num_questions_quiz = 25
total_questions = num_practice_tests * num_questions_per_test + num_questions_quiz
result = total_questions
return result
|
A family of 4 took a vacation and spent $450 on food. How much did each person spend? | def solve() -> int:
family = 4
total_spent = 450
person_spent = total_spent/family
result = person_spent
return result
|
A chess tournament had 48 participants. If the entry fee was $10, how much money did the whole tournament make? | def solve() -> int:
total = 0
for i in range(48):
total += 10
result = total
return result
|
Jake can paint 15 square meters of a wall in 10 minutes. At this same rate, how long would it take him to paint a wall with an area of 120 square meters? | def solve() -> int:
rate = 15 / 10
minutes = 120 / rate
result = int(minutes)
return result
|
Jennifer and Lisa are twins. Jennifer is 2 years older than Lisa. Together, their ages sum up to 26. How old is Lisa? | def solve() -> int:
ages_sum = 26
age_difference = 2
age_of_Lisa = (ages_sum - age_difference) / 2
result = age_of_Lisa
return result
|
Student: Hector wants to dig and plant a garden but doesn't know how much soil he needs. If his garden will be 2 feet tall and 8 feet wide, how many cubic feet of soil does Hector need? | def solve() -> int:
height = 2
width = 8
area = height * width
volume = area * height
soil_needed = volume
result = soil_needed
return result
|
In the basketball game, The Sharks scored 15 points in the first quarter and 10 points more than that in the second quarter. The other team, The Falcons, scored 10 points less than The Sharks in the first quarter and the same as The Sharks in the second quarter. What is the total amount of points both teams scored? | def solve() -> int:
sharks_first = 15
sharks_second = sharks_first + 10
falcons_first = sharks_first - 10
falcons_second = sharks_second
total_score = sharks_first + sharks_second + falcons_first + falcons_second
result = total_score
return result
|
Jason and Emily were both born on December 1st, but in different years. To simplify things, they also got married on December 1st when Jason turned 30. If today they're celebrating 20 years of marriage and their combined age is exactly 4 times what Jason's age was when they married, how old was Emily when they got marr... | def solve() -> int:
jason_age_when_married = 30
years_of_marriage = 20
combined_age = jason_age_when_married + years_of_marriage * 2
jason_age_when_married *= 4
emily_age_when_married = combined_age - jason_age_when_married
result = emily_age_when_married
return result
|
Tracy runs 5 miles every day for a week. If she runs the same distance every day, how many miles will she run in total? | def solve() -> int:
miles_per_day = 5
days_in_week = 7
total_miles = miles_per_day * days_in_week
result = total_miles
return result
|
Student: A recipe calls for 2 cups of flour to make 8 cookies, how many cups of flour do you need to make 48 cookies? | def solve() -> int:
cookies = 48
cups_per_8_cookies = 2
cups_needed = (cookies / 8) * cups_per_8_cookies
result = cups_needed
return result
|
Betty bought a washing machine that cost $375. If the delivery charge was $29.50 and the sales tax was 8.75%, how much did Betty have to pay? | def solve() -> int:
cost = 375
delivery_charge = 29.50
tax = (cost + delivery_charge) * 0.0875
total_cost = cost + delivery_charge + tax
result = total_cost
return result
|
A man has 5 cats, 7 dogs and 3 birds. He gave away 3 cats and twice as many dogs as cats. How many animals does he have left? | def solve() -> int:
total_animals = 5 + 7 + 3
remaining_animals = total_animals - (3 + (2 * 3))
result = remaining_animals
return result
|
A piano teacher is teaching her students. For each lesson, she has to warm up the students, teach them theory, and make them practice playing the piano. It takes her a total of 1 hour and 15 minutes for one lesson. If she has to teach 5 lessons today, how long does she spend making the students practice playing the pia... | def solve() -> int:
time_to_teach_theory = 20
total_time = 375
time_to_practice_playing_piano = (total_time - time_to_teach_theory*5)//2
result = time_to_practice_playing_piano
return result
|
Rachel wants to make muffins with all her blueberries. It takes twice as many flour as blueberries. She has 6 cups of blueberries and already has 12 cups of flour. The flour comes in 3-cup packages. How many packages of flour does she need to buy? | def solve() -> int:
blueberries = 6
flour = 2 * blueberries
flour_already_has = 12
flour_to_buy = flour - flour_already_has
packages_of_flour = flour_to_buy / 3
result = packages_of_flour
return result
|
Student: A book cost $20. It is on sale for 15% off. What is the discounted price? | def solve() -> int:
original_price = 20
discount_percentage = 0.15
discounted_price = original_price * (1 - discount_percentage)
result = discounted_price
return result
|
2. Ryan is playing a video game. Ryan needs to get rid of 13 zombies and he can defeat one zombie with 5 bullets. How many bullets does he need to get rid of all the zombies? | def solve() -> int:
num_zombies = 13
num_bullets_per_zombie = 5
result = num_zombies * num_bullets_per_zombie
return result
|
Sofia is making vegetable soup that calls for 1/2 cup of diced carrots. She wants to add more carrots to her soup and decides to double the amount. Each carrot yields 1/8 cup of diced carrots. How many carrots does Sofia need? | def solve() -> int:
carrots_in_soup = 1/2
carrots_per_carrot = 1/8
total_carrots = carrots_in_soup * 2 / carrots_per_carrot
result = total_carrots
return result
|
Student: Melissa has 12 packs of markers. In each pack, there 8 markers in different colors. What is the total number of markers that Melissa has? | def solve() -> int:
packs = 12
markers_per_pack = 8
total_markers = packs * markers_per_pack
result = total_markers
return result
|
Student: If a purse that normally costs 30 dollars is on sale for 20% off, how much would it cost? | def solve() -> int:
original_cost = 30
discount_rate = 0.2
discounted_cost = original_cost * (1 - discount_rate)
final_cost = round(discounted_cost, 2)
result = final_cost
return result
|
Maria buys 5 dresses at 50 dollars each, 2 of them are for her sister and the rest are for her. She also buys 3 pairs of shoes for 30 dollars each. How much money did she spend on dresses for herself? | def solve() -> int:
dresses_total_cost = 5*50
dresses_for_sister = 2*50
dresses_for_maria = dresses_total_cost - dresses_for_sister
maria_total_cost = dresses_for_maria + 3*30
result = maria_total_cost
return result
|
A store has a discount of 30% on all items. If a shirt costs $50, what is the new price of the shirt with the discount? | def solve() -> int:
original_price = 50
discount_percentage = 30
discount_amount = original_price * discount_percentage / 100
new_price = original_price - discount_amount
result = new_price
return result
|
John has $600 and he wants to buy a laptop that costs $850. If he saves $50 a week, how long will it take him to afford the laptop? | def solve() -> int:
current_savings = 600
cost_laptop = 850
weekly_savings = 50
weeks_needed = (cost_laptop - current_savings) / weekly_savings
result = weeks_needed
return result
|
A bus traveled 345 miles in 5 hours. What was the average speed of the bus in miles per hour? Round off the answer to 2 decimal places. | def solve() -> int:
distance_traveled = 345
time_taken = 5
average_speed = distance_traveled / time_taken
result = round(average_speed, 2)
return result
|
David buys a car for $12000 and decides to sell the tires for $2000 and replace them with new ones costing $3000. What is the total amount that David spent on his car after the transaction? | def solve() -> int:
car_price = 12000
tire_price = 2000
new_tire_price = 3000
total_spent = car_price - tire_price + new_tire_price
result = total_spent
return result
|
Anna has 20 marbles. She gave 9 of them to her brother and 6 of them to her friend. How many marbles does she now have? | def solve() -> int:
anna = 20
given_to_brother = 9
given_to_friend = 6
anna_current = anna - (given_to_brother + given_to_friend)
result = anna_current
return result
|
A train starting from station A travels at a speed of 60 MPH. Another train starting from station B travels to the same destination point as train A at the same time it starts. If the speed of train B is 100 MPH, which train will reach the destination first if the distance between station A and B is 800 miles? | def solve() -> int:
distance = 800
speed1 = 60
speed2 = 100
time1 = distance / speed1
time2 = distance / speed2
if time1 < time2:
result = "Train A reaches the destination first"
else:
result = "Train B reaches the destination first"
return result
|
A box of pencils costs $7 and a notebook costs $12. All together, a student spends $65 on 8 items of pencils and notebooks combined. How many pencils did the student buy? | def solve() -> int:
pencil_cost = 7
notebook_cost = 12
total_cost = 65
total_items = 8
pencils = (total_cost - (notebook_cost * total_items))/(pencil_cost - notebook_cost)
result = pencils
return result
|
A store manager needs to order new shirts for his employees. If a single box of shirts contains 6 large shirts and 9 small shirts, and he needs 81 shirts in total, how many boxes should he order? | def solve() -> int:
large_per_box = 6
small_per_box = 9
total_per_box = large_per_box + small_per_box
required_shirts = 81
total_boxes_needed = required_shirts // total_per_box
if required_shirts % total_per_box > 0:
total_boxes_needed += 1
result = total_boxes_needed
... |
An ice cream shop can make 120 scoops of ice cream in one day. If they only made 90 scoops today, what percentage of the total scoops did they make? | def solve() -> int:
total_scoops = 120
scoops_made = 90
percentage_made = scoops_made/total_scoops*100
result = percentage_made
return result
|
Alex paid a total of $207 including a tax of 9%. Calculate the price of the item he bought before the tax. | def solve() -> int:
tax_rate = 0.09
total_price = 207
price_before_tax = total_price / (1 + tax_rate)
result = price_before_tax
return result
|
A pen costs $4, and a notebook costs $6. If Harry buys 4 pens and 2 notebooks, what will be the total cost? | def solve() -> int:
pen_cost = 4
notebook_cost = 6
pen_count = 4
notebook_count = 2
total_cost = (pen_count * pen_cost) + (notebook_count * notebook_cost)
result = total_cost
return result
|
Elena has two jars of candies. In the first jar, she has 18 candies and 2/9 of them are chocolates. In the second jar, she has 24 candies and 1/4 of them are chocolates. How many chocolates does she have in total? | def solve() -> int:
chocolates_in_jar1 = (2/9) * 18
chocolates_in_jar2 = (1/4) * 24
total_chocolates = chocolates_in_jar1 + chocolates_in_jar2
result = total_chocolates
return result
|
Julia has $600 in her savings account. She withdraws $50 per month. How much will she have left after she has withdrawn $50 every month for 9 months? | def solve() -> int:
money_left = 600-50*9
result = f'<<<{money_left}>>>'
result = money_left
return result
|
John has a rectangular plot of land that measures 70 feet by 90 feet. If he wants to build a fence around it, how many feet of fencing does he need? | def solve() -> int:
length = 90
width = 70
perimeter = 2 * (length + width)
result = perimeter
return result
|
Student: Emily has a bag full of coins which contains 600 pennies. 5 coins make one dollar. How many dollars does she have in the bag? | def solve() -> int:
pennies = 600
coins_per_dollar = 5
dollars = pennies // coins_per_dollar
result = dollars
return result
|
Student: Stanley has three daughters whose ages add up to 66. Amie is three times the age of Lizzie and one year older than Jazlyn. How many years old is Jazlyn? | def solve() -> int:
amie_age = 0
lizzie_age = 0
jazlyn_age = 0
total_age = 66
jazlyn_age = total_age - amie_age - lizzie_age
amie_age = 3 * lizzie_age
jazlyn_age = amie_age - 1
lizzie_age = (amie_age - jazlyn_age) / 3
result = jazlyn_age
return result
|
A store had 600 items, all worth $20, and offered a big discount of 85%. Due to the discount, they managed to sell 90% of the items. But in order to sustain their business, they had to pay $26000 in debts. How much money do they have profited from the sale? | def solve() -> int:
cost_per_item = 20
num_of_items = 600
discount = 0.85
percent_of_items_sold = 0.9
total_items_cost = cost_per_item * num_of_items
total_sale = total_items_cost * (1 - discount) * percent_of_items_sold
result = total_sale - 26000
return result
|
Nina, Ben, and Eva played different board games during their sleepover. Nina played 6 games, Ben played 8 games, and Eva played 10 games. They all played 2 games together, but every other game they played was different. How many different games did they play? | def solve() -> int:
total_games = 6 + 8 + 10
games_together = 2 * 3
different_games = total_games - games_together
result = different_games
return result
|
Lily loves to skate in a rink that is 50 meters long. She skates the length of the rink 30 times in a day. How many meters does she skate in a week if she skates for 5 days in a week? | def solve() -> int:
rink_length = 50
skates_per_day = 30
days_per_week = 5
meters_per_week = rink_length * skates_per_day * days_per_week
result = meters_per_week
return result
|
Jennifer drove her car for 8 hours and covered a total distance of 500 miles. What was her average speed during this drive? | def solve() -> int:
distance = 500
time = 8
speed = distance/time
result = speed
return result
|
Mia's salon has a glamorous offer. If you buy any hair color service you can get the next 2 hair cut services for $10 each. What are your total savings if the regular hair cut service price is $25 and you take full advantage of the offer? | def solve() -> int:
C = 50
offer_cost = C + 2 * 10
regular_cost = 3 * 25
savings = regular_cost - offer_cost
result = savings
return result
|
If a school has 300 students, and 20% of them transfer to a different school, how many students are left in the school? | def solve() -> int:
students = 300
transferred_students = 0.2*students
remaining_students = students-transferred_students
result = remaining_students
return result
|
Henry is collecting donations for a charity. There are 15 donors who each give $50, plus $10 from five donors for refreshments and $5 from five donors for marketing materials. How much money does Henry collect in total? | def solve() -> int:
donor_count = 15
donation_amount = 50
refreshment_donors = 5
refreshment_amount = 10
marketing_donors = 5
marketing_amount = 5
total_donation = donor_count * donation_amount
total_refreshment = refreshment_donors * refreshment_amount
total_marketing = marketi... |
Riley, Sofia, and Tyler each have a bag of candy. Riley's bag has 6 more pieces of candy than Sofia's bag. Sofia's bag has 4 less pieces of candy than twice the number of pieces of candy in Tyler's bag. Tyler's bag has 15 pieces of candy. How many pieces of candy does Riley have? | def solve() -> int:
Tyler = 15
Sofia = 2 * Tyler - 4
Riley = Sofia + 6
result = Riley
return result
|
Student: A diver can swim 50 meters in 25 seconds. How long would it take to swim 80 meters if she increases her speed by 20%? | def solve() -> int:
distance1 = 50
time1 = 25
distance2 = 80
speed_increase = 0.2
speed1 = distance1 / time1
speed2 = speed1 * (1 + speed_increase)
time2 = distance2 / speed2
result = round(time2, 2)
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.