question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Jack needs to repair 19 computers in 7 days. How many computers must Jack repair per day on average in order to finish the repairs in time? | def solve() -> int:
x = 19
y = 7
result = x / y
return result
|
A group of students are having a pizza party. If each pizza has 8 slices and there are 16 students, how many pizzas will they need? | def solve() -> int:
slices_per_pizza = 8
number_of_students = 16
slices_needed = slices_per_pizza * number_of_students
number_of_pizzas = slices_needed / slices_per_pizza
result = number_of_pizzas
return result
|
Jim has $0.90 with him. He wants to buy 2 apples, which cost 0.25 each. How much money will he have left? | def solve() -> int:
money = 0.9
apple = 0.25
money=money-2*apple
result = money
return result
|
A classroom has 30 students. A new student joins the classroom. How many students are in the classroom? | def solve() -> int:
current_students = 30
new_student = 1
total_students = current_students + new_student
result = total_students
return result
|
Leo had $40 in his pocket. He wanted to buy a skateboard that costs $35. However, he also had to pay a 10% sales tax on the skateboard. How much did he have left? | def solve() -> int:
leo = 40
skateboard = 35 * 1.1
leo = leo - skateboard
result = leo
return result
|
John bought 20 bananas for $12. He then sold them for $1.25 per banana. How much profit did John make? | def solve() -> int:
banana_price = 12/20
profit = (1.25- banana_price) * 20
result = profit
return result
|
A pizza has a diameter of 12 inches. What is the circumference of the pizza? | def solve() -> int:
radius = 12 / 2
circumference = 2 * 3.14 * radius
result = circumference
return result
|
A company has 500 employees. 37% of them are women, and the remaining are men. How many male employees are there in the company? | def solve() -> int:
total_employees = 500
women = total_employees * 0.37
men = total_employees - women
result = men
return result
|
A rectangular room measures 12 ft by 8 ft. If the room is carpeted and the carpet costs $2.50 per square foot, how much will it cost to carpet the room? | def solve() -> int:
length = 12
width = 8
area = length * width
cost_per_square_foot = 2.5
total_cost = area * cost_per_square_foot
result = total_cost
return result
|
Kate drove for 2 hours at 60mph, then slowed down to 40mph for the next 1.5 hours. How far did she travel in total? | def solve() -> int:
distance1 = 2*60
distance2 = 1.5*40
total_distance = distance1 + distance2
result = total_distance
return result
|
A bakery sells cakes for $20 each. If they sell 5 cakes they get a discount of 10%. If John wants to buy 7 cakes, how much does he pay? | def solve() -> int:
num_cakes = 7
discount_threshold = 5
discount_rate = 0.1
num_full_price_cakes = num_cakes % discount_threshold
num_discounted_cakes = num_cakes - num_full_price_cakes
total_cost = num_full_price_cakes * 20 + num_discounted_cakes * 20 * (1 - discount_rate)
result = total_c... |
Samantha walks 7 miles every day for the next 5 weeks. How many miles will she have walked in total? | def solve() -> int:
miles_per_day = 7
num_weeks = 5
num_days = num_weeks * 7
total_miles = num_days * miles_per_day
result = total_miles
return result
|
A train can travel 240 kilometers in 2 hours. How long will it take to travel 540 kilometers at the same speed? | def solve() -> int:
speed = 240 / 2
distance = 540
time = distance / speed
result = time
return result
|
Rachel rides her bike to work every day. If she rides 6 miles a day for 20 days in a month, how many total miles does she ride in a month? | def solve() -> int:
miles_per_day = 6
days_per_month = 20
total_miles = miles_per_day * days_per_month
result = total_miles
return result
|
Sarah buys 1600 liters of gasoline. She divides it into 20-liter cans. She gives 3/4 of it to her friend. She puts 1/3 of what remains in the car. How many liters of gasoline does she keep for herself? | def solve() -> int:
gasoline_bought = 1600
can_size = 20
gasoline_given = gasoline_bought * (3/4)
gasoline_remaining = gasoline_bought - gasoline_given
gasoline_in_car = gasoline_remaining * (1/3)
gasoline_kept = gasoline_remaining - gasoline_in_car
result = gasoline_kept
... |
If Matt has 25 baseball cards and gives 10 away to his friend, but then receives 8 as a gift, and accidentally tears 3, how many baseball cards does he have left? | def solve() -> int:
cards_initial = 25
cards_given_away = 10
cards_received = 8
cards_torn = 3
cards_left = cards_initial - cards_given_away + cards_received - cards_torn
result = cards_left
return result
|
The total cost of 5 books in Bill's bookstore was $200, and each book cost $0.50 more than the other. How much did the most expensive book cost? | def solve() -> int:
total_cost = 200
num_books = 5
difference = 0.50 * num_books
cost_2ndmost_expensive = total_cost - difference
cost_most_expensive = cost_2ndmost_expensive + 0.50
result = cost_most_expensive
return result
|
Student: John has 34 coins. He wants to give two thirds of the coins to his friends. How many coins will remain after he gives them to his friends? | def solve() -> int:
coins = 34
two_thirds = 2/3
coins_given = coins * two_thirds
coins_remaining = coins - coins_given
result = coins_remaining
return result
|
Max and Bella went to Mr. Gold's safe to have their lockers opened. They realized Max had one-third of the gold Bella had when Mr. Gold opened the lockers. If the total amount of gold was 90, how much gold did Max have? | def solve() -> int:
total_gold = 90
max_gold = total_gold / 4
bella_gold = max_gold * 3
result = max_gold
return result
|
Peter works as a salesperson and earns $400 per week plus a 10% commission on his sales. If he makes $2000 in sales in a week, how much did he earn that week in total? | def solve() -> int:
weekly_salary = 400
commission_rate = 0.1
sales = 2000
total_earnings = weekly_salary + commission_rate * sales
result = total_earnings
return result
|
Tony has a fish tank that can hold 20 liters of water. He needs to fill the tank with a mixture of fresh water and salt water. He has a jug of fresh water that contains 10 liters and a jug of salt water that contains 12 liters. He wants to use 40% of the fresh water and 60% of the salt water. How many liters of water w... | def solve() -> int:
fresh = 10
salt = 12
tank = 20
fresh_percent = 0.4
salt_percent = 0.6
fresh_amount = fresh * fresh_percent
salt_amount = salt * salt_percent
total_amount = fresh_amount + salt_amount
result = total_amount
return result
|
The ratio of girls to boys in a class is 3:1. If there are 24 students in the class, how many girls are in it? | def solve() -> int:
total_students = 24
ratio_girls_to_boys = 3/1
girls = (ratio_girls_to_boys/(1+ratio_girls_to_boys))*total_students
result = girls
return result
|
A company offers a 10% discount for orders over $1000 and a 20% discount for orders over $2000. If a customer places an order for $1500, what is the final amount to be paid? | def solve() -> int:
order_amount = 1500
if order_amount > 2000:
discount = 0.2
elif order_amount > 1000:
discount = 0.1
else:
discount = 0
discount_amount = order_amount * discount
final_amount = order_amount - discount_amount
result = round(final_amount, 2)
retur... |
Jessica was assigned a project about planets. She needs to make a model of the solar system to scale. If Jessica wants Jupiter to be 1.5 centimeters in diameter, how wide will the solar system model be? | def solve() -> int:
jupiter_diameter = 1.5
diameter_ratio_of_solar_system = 10822312902.4578
solar_system_diameter = jupiter_diameter * diameter_ratio_of_solar_system
result = solar_system_diameter
return result
|
Mary had 12 books and donated half of them to the local library. How many books does she have left? | def solve() -> int:
amount_of_books_owned = 12
amount_of_books_donated = amount_of_books_owned/2
amount_of_books_left = amount_of_books_owned-amount_of_books_donated
result = amount_of_books_left
return result
|
Q10: Ryan has 25 cards. Nine of the cards are for Pokemon. He has one third as many Digimon cards as Pokemon cards. The rest of the cards are for Yu-Gi-Oh. How many Yu-Gi-Oh cards does he have? | def solve() -> int:
pokemon = 9
digimon = pokemon / 3
yugioh = 25 - pokemon - digimon
result = int(yugioh)
return result
|
Alex does 3 math exercises each day on Monday, Tuesday and Wednesday. On Thursday and Friday he does 5 math exercises each day. How many total math exercises did he do during the whole week? | def solve() -> int:
Monday = 3
Tuesday = 3
Wednesday = 3
Thursday = 5
Friday = 5
Total_exercises = Monday + Tuesday + Wednesday + Thursday + Friday
result = Total_exercises
return result
|
If a train is traveling at 60 miles per hour, how long will it take to travel 250 miles? | def solve() -> int:
distance = 250
speed = 60
time = distance / speed
result = time
return result
|
A restaurant spends $3500 a month on ingredients. $2000 of that was spent on vegetables. If the remaining ingredients cost the same, what is the cost of the other ingredients? | def solve() -> int:
total_cost = 3500
vegetable_cost = 2000
other_cost = total_cost - vegetable_cost
result = other_cost
return result
|
A toy company produces 500 toys per day. Each toy costs $3 to make and they sell them for $7. What is their daily profit? | def solve() -> int:
toys_per_day = 500
toy_cost = 3
toy_sell_price = 7
daily_cost = toys_per_day * toy_cost
daily_revenue = toys_per_day * toy_sell_price
daily_profit = daily_revenue - daily_cost
result = daily_profit
return result
|
James runs 15 minutes every day from Monday to Thursday but takes a rest on Friday. On Saturday, he runs 10 minutes more than he does on other days. How many minutes has he run during the week? | def solve() -> int:
monday = 15
tuesday = 15
wednesday = 15
thursday = 15
friday = 0
saturday = monday + 10
minutes_total = monday + tuesday + wednesday + thursday + friday + saturday
result = minutes_total
return result
|
David wants to buy a new TV. He trades in his old TV for a soundbar. The old TV is worth $1200 and the store gives him 60% of that value. He gives $400 and gets back $70 change and a streaming device worth $50. How much was the soundbar on sale for? | def solve() -> int:
old_tv_value = 1200
amount_received = old_tv_value * 0.6
soundbar_price = amount_received - 400
total_value = 70 + 50
soundbar_final_price = soundbar_price - total_value
result = soundbar_final_price
return result
|
If John gives his cousin 5 dollars, he will have three times as much money left as his cousin. But his best friend will have twice as much money as John. If they start with a total of 80 dollars, how much money does John have? | def solve() -> int:
john_money = 0
cousin_money = 0
friend_money = 0
john_money = (80 - 5) / 6
result = john_money
return result
|
A rectangle has a length of 12 cm and a width of 8 cm. What is the area of the rectangle in square centimeters? | def solve() -> int:
length = 12
width = 8
area = length * width
result = area
return result
|
If a school has 800 students and 25% of them are absent, how many students are present? | def solve() -> int:
total_students = 800
absent_percentage = 25
present_percentage = 100 - absent_percentage
present_students = total_students * present_percentage/100
result = present_students
return result
|
A rectangular box measures 12 inches by 10 inches by 6 inches. What is its volume in cubic inches? | def solve() -> int:
length = 12
width = 10
height = 6
volume = length * width * height
result = volume
return result
|
If a car travels 60 miles per hour, how long will it take to travel 180 miles? | def solve() -> int:
distance = 180
speed = 60
time = distance / speed
result = time
return result
|
If Mark reads 10 pages of a book per hour and reads for 4 hours straight before taking a break but he doesn't finish all 43 pages, and the next day he finishes reading the last 13 pages in 1 hour, how many pages of the book did Mark read in total? Samantha wants to buy 3 dozen of cupcakes for a party. The regular price... | def solve() -> int:
pages_per_hour = 10
hours_reading = 4
total_pages_read = pages_per_hour * hours_reading
remaining_pages = 43 - total_pages_read
total_pages_read += remaining_pages
cupcakes_per_dozen = 12
dozens_of_cupcakes = 3
regular_price = 2
discount_percentage = 15
d... |
Student: Mary has a puzzle with 216 pieces that she hopes to complete. If Mary has already completed 156 pieces, how many pieces remain to be finished? | def solve() -> int:
pieces_total = 216
pieces_completed = 156
pieces_remaining = pieces_total - pieces_completed
result = pieces_remaining
return result
|
If Oliver has $7 less than thrice the money that Lily has, and Lily has $30, but still needs $6 to have twice the amount of Oliver, what is the total amount of money they have? | def solve() -> int:
lily_money = 30
oliver_money = (3 * lily_money) - 7
total_money = lily_money + oliver_money
result = total_money
return result
|
Leo bought 6 packs of cookies, each of which contained 12 cookies. He ate 4 cookies and shared the rest equally with his 3 friends. How many cookies did each friend get? | def solve() -> int:
total_cookies = 6 * 12
remaining_cookies = total_cookies - 4
cookies_per_friend = remaining_cookies // 3
result = cookies_per_friend
return result
|
A flower shop has 24 roses and 18 tulips. Each bouquet has 6 roses and 4 tulips. How many bouquets can be made? | def solve() -> int:
roses_per_bouquet = 6
tulips_per_bouquet = 4
total_roses = 24
total_tulips = 18
bouquets = min(total_roses//roses_per_bouquet, total_tulips//tulips_per_bouquet)
result = bouquets
return result
|
A rectangle has width of 8cm and length of 12cm. What is the perimeter of the rectangle? | def solve() -> int:
width = 8
length = 12
perimeter = (2 * width) + (2 * length)
result = perimeter
return result
|
Rose wants to reduce her body fat to 15%, so she starts working out each day. On the first day, her body fat is 20%. On the second day, it's 19%. On the third day, it's 18%. After realizing that she can reduce her body fat by 1% each day, she realizes she can calculate how many days it is until she reaches 15% if she k... | def solve() -> int:
day1 = 20
day2 = 19
day3 = 18
target = 15
days = 0
while day1 > target:
day1 -= 1
days += 1
result = days
return result
|
If a pizza with a diameter of 16 inches costs $12, what is the price per square inch? | def solve() -> int:
diameter = 16
radius = diameter / 2
area = 3.14159 * radius**2
price = 12
price_per_square_inch = price / area
result = price_per_square_inch
return result
|
A board is 5 feet wide and 6 feet long. If a tile is 1 square foot, how many tiles are needed to cover the board? | def solve() -> int:
tiles_needed = 5 * 6
result = f'<<<{tiles_needed}>>>'
result = tiles_needed
return result
|
A bakery has 5 cupcakes for each cake. If the bakery has 12 cakes, how many cupcakes and cakes are there altogether? | def solve() -> int:
num_cupcakes = 5 * 12
total_baked_goods = num_cupcakes + 12
result = total_baked_goods
return result
|
The length of a rectangle is 5cm more than twice its width, and its perimeter is 42cm. What are its dimensions? | def solve() -> int:
perimeter = 42
length = (perimeter - 2 * 5) / 2
width = (perimeter - 2 * length) / 2
result = (length, width)
return result
|
Emily has 8 pens and she lost 3 of them. How many pens does she have now? | def solve() -> int:
pens = 8
lost = 3
remaining_pens = pens - lost
result = remaining_pens
return result
|
Student: Amanda has a shelf that can support up to 50 pounds of weight. She wants to put her collection of 25 cookbooks that each weigh 1.2 pounds, 15 novels that each weigh 0.8 pounds, and 5 picture frames that each weigh 1.4 pounds on the shelf. How many pounds under the shelf's weight limit is this total collection ... | def solve() -> int:
shelf_limit = 50
cookbooks = 25
cookbook_weight = 1.2
novels = 15
novel_weight = 0.8
frames = 5
frame_weight = 1.4
total_weight = cookbooks * cookbook_weight + novels * novel_weight + frames * frame_weight
pounds_under = shelf_limit - total_weight
resul... |
Carol has a jar of candy. She knows that each candy weighs 10 grams and that the jar weighs 200 grams when empty. She uses a scale to measure that the jar with the candy weighs 920 grams. How many candies are in the jar? | def solve() -> int:
candy_weight = 920 - 200
candies = candy_weight / 10
result = candies
return result
|
It takes Ethan 25 minutes to bike to the skate park. From the park, he has to bike back home and it takes him 35On a soccer ball, the first panel is yellow and a quarter of the remaining panels are also yellow. Each soccer ball has 20 panels. Maria buys 4 soccer balls. How many yellow panels are there in total? | def solve() -> int:
ethan_to_park = 25
ethan_to_home = 35
total_biking_time = ethan_to_park + ethan_to_home
num_panels = 20
yellow_panels = 1 + num_panels // 4
total_yellow_panels = 4 * yellow_panels
result = total_yellow_panels
return result
|
Matt owes his uncle $1000. He makes an initial payment of $300 and still owes 75%. What was Matt's original debt? | def solve() -> int:
initial_payment = 300
remaining_debt_percentage = 75
remaining_debt = (100 - remaining_debt_percentage) / 100 * initial_payment
original_debt = remaining_debt / (1 - remaining_debt_percentage / 100)
result = original_debt
return result
|
Ben, Mark, and Lisa planted some flowers in their garden. Ben planted 24 tulips, Mark planted 18 roses, and Lisa planted 12 sunflowers. What was the ratio of tulips to roses to sunflowers in their garden? | def solve() -> int:
from math import gcd
factor = gcd(24, gcd(18, 12))
ratio = (24 // factor, 18 // factor, 12 // factor)
result = ratio
return result
|
Eric had 60 pencils. He gave 15% of his pencils to his classmates and 10% of his pencils to his teacher. Then he received 8 more pencils from his friend. How many pencils does Eric have now? | def solve() -> int:
pencils = 60
pencils_to_classmates = 0.15 * pencils
pencils_to_teacher = 0.1 * pencils
pencils = pencils - pencils_to_classmates - pencils_to_teacher
pencils = pencils + 8
result = pencils
return result
|
Ethan went to a coffee shop and spent $3 on a latte and a croissant. His friend, Gavin, decided to have the same but in a different café that was more expensive. Gavin paid $2 more for the latte and croissant than Ethan did, and he also needed to pay an additional 10% tax. How much did Gavin spend in total? | def solve() -> int:
ethan_total = 3
gavin_total = ethan_total + 2
gavin_total_with_tax = gavin_total * 1.1
result = gavin_total_with_tax
return result
|
Emma is hired to walk a dog and give it a bath. Walking the dog takes 30 minutes and pays $10. If Emma wants to make $12/hour working for the dog owner, and giving the dog a bath takes 45 minutes, how much should Emma charge (in total, not per hour) for giving the dog a bath? | def solve() -> int:
walk_time = 30
walk_pay = 10
bath_time = 45
desired_hourly_rate = 12
total_time = walk_time + bath_time
walk_total_pay = (walk_pay / walk_time) * total_time
remaining_pay = desired_hourly_rate * (total_time / 60) - walk_total_pay
bath_charge = rema... |
Student: If 2 workers can finish a piece of work in 4 days, how many days will 10 workers take to finish the same task? | def solve() -> int:
workers = 10
time_for_2_workers = 4
time_for_10_workers = time_for_2_workers / (2/workers)
result = time_for_10_workers
return result
|
A toy store has 320 stuffed animals. If they sold 1/4 of their inventory, how many stuffed animals were sold? | def solve() -> int:
inventory = 320
sold = inventory * (1/4)
result = sold
return result
|
Natalie is practicing for a figure skating competition. She practices for 3 hours every weekday, on Saturdays she practices for 5 hours, and she doesn't practice on Sundays. How many hours will she have practiced in the next 4 weeks, if the competition is in 28 days? If Jack ran 5 meters per second faster than the reco... | def solve() -> int:
weekday_hours = 3
saturday_hours = 5
days_in_week = 7
total_days = 28
weekly_hours = (weekday_hours * 5) + saturday_hours
total_hours = weekly_hours * (total_days // days_in_week)
result = total_hours
return result
|
Daniel runs a bookstore. His books are priced at $15 each. If his expenses are 70% of total sales for the day, how many books would he need to sell to make a $500 profit for the day? | def solve() -> int:
books_price = 15
expenses_percentage = 0.7
profit = 500
total_sales = (profit / (1 - expenses_percentage))
books_sold = total_sales / books_price
result = books_sold
return result
|
There are 8 boxes of chocolates on a store shelf. Each box costs $5.96. If Cindy buys all 8 boxes, how much money will she spend in total? | def solve() -> int:
num_boxes = 8
box_price = 5.96
total_cost = num_boxes * box_price
result = total_cost
return result
|
John has 12 pencils and he gives away 3 pencils to each of his 5 friends. How many pencils does John have left? | def solve() -> int:
pencils = 12
friends = 5
given_away = friends * 3
left = pencils - given_away
result = left
return result
|
The pet store sells small fishes for $2 and large fishes for $10. They made $36 in sales. If they sold 6 small fishes, how many large fishes did they sell? | def solve() -> int:
small_fish_price = 2
large_fish_price = 10
total_sales = 36
small_fish_sold = 6
small_fish_sales = small_fish_price * small_fish_sold
large_fish_sales = total_sales - small_fish_sales
large_fish_sold = large_fish_sales / large_fish_price
result = l... |
In the chess tournament, Gina has 12 points, Michael has 8 points, and Sam has half the combined points of Gina and Michael. If they are on the same team and their opponents' team has a total of 30 points, how many points are their team ahead? | def solve() -> int:
gina_points = 12
michael_points = 8
sam_points = (gina_points + michael_points) / 2
opponents_points = 30
team_points = gina_points + michael_points + sam_points
team_ahead = team_points - opponents_points
result = team_ahead
return result
|
Bill has 4 cups of flour. Each cup contains 4 tablespoons of flour. How many tablespoons of flour does Bill have? | def solve() -> int:
cups_of_flour = 4
tablespoon_per_cup = 4
total_tablespoons = cups_of_flour * tablespoon_per_cup
result = total_tablespoons
return result
|
Max is buying candy for his friends. He has 20 dollars and each candy costs 1.25 dollars. He also gets a 10% discount for every 10 candies he buys. How many candies can he buy in total? | def solve() -> int:
money = 20
candy_price = 1.25
discount = 0.1
candies_no_discount = money // candy_price
discount_times = candies_no_discount // 10
money_saved = discount_times * 10 * candy_price * discount
candies_extra = money_saved // candy_price
candies_to... |
Leo is a baker. He has two times as many eggs as he has hands, and four more cups of flour than he has eggs. He also has one more oven than he has ears, and the same number of cake pans as he has oven. What is the total number of baking items that Leo has? | def solve() -> int:
hands = 2
ears = 2
eggs = 2 * hands
flour = eggs + 4
oven = ears + 1
cake_pans = oven
total = eggs + flour + oven + cake_pans
result = total
return result
|
Tim gets paid $15 per hour for his job. He worked for 8 hours a day for 5 days, and then took a 2-day break. If he worked a total of 40 hours this week, how much did he earn? | def solve() -> int:
hours_worked = 8 * 5
salary = 15 * hours_worked
total_salary = salary + (2 * 15 * 8)
result = total_salary
return result
|
In a farm, there are 180 animals. There are 4 times as many chickens as there are cows and 3 times as many pigs as cows. How many cows are there? | def solve() -> int:
c = 180 / 8
result = c
return result
|
Student: A supermarket sells fruits and vegetables only. If the number of fruits is 100 and there are 400 customers in total, if each customer buys only 2 items on average, how many customers buy only vegetables? | def solve() -> int:
num_fruits = 100
num_customers = 400
avg_items_per_customer = 2
total_items_bought = num_customers * avg_items_per_customer
num_fruits_bought = num_fruits
num_vegetables_bought = total_items_bought - num_fruits_bought
num_customers_vegetables_only = num_vegetables_bought ... |
A bicycle store receives a shipment of 200 bikes. If they sell 75, how many bikes are left in the store? | def solve() -> int:
initial_bikes = 200
sold_bikes = 75
remaining_bikes = initial_bikes - sold_bikes
result = remaining_bikes
return result
|
At Starlight Company, an employee receives 20 personal days and 18 vacation days each year. If John uses half of his personal days and two-fifths of his vacation days, how many hours of personal leave does he have left? | def solve() -> int:
personal_days = 20
vacation_days = 18
used_personal_days = personal_days / 2
used_vacation_days = vacation_days * 2 / 5
remaining_personal_days = personal_days - used_personal_days
remaining_vacation_days = vacation_days - used_vacation_days
hours_per_day =... |
A group of friends went to a restaurant and split the bill equally. If each person paid $16.25, and there were 9 people in the group, what was the total bill? | def solve() -> int:
total_bill = 146.25
result = total_bill
return result
|
Maria has some cups, and she bought twice as many new cups as she had original. She now has 36 cups. How many cups did she have before she bought new ones? | def solve() -> int:
total_cups = 36
original_cups = total_cups / 2
result = original_cups
return result
|
A bus travels 120 miles in the first 2 hours of travel and 150 additional miles in the next 3 hours. What is the average speed of the bus for the entire trip? | def solve() -> int:
speed1 = 120/2
speed2 = 150/3
total_time = 5
total_distance = 120 + 150
avg_speed = total_distance/total_time
result = avg_speed
return result
|
Three numbers are in the ratio 2:3:7. The sum of the numbers is 72. What is the smallest number? | def solve() -> int:
x = 4
smallest_number = 2*x
result = smallest_number
return result
|
Chris starts with $50 in his bank account. He received $500 from his tax refund, but then spent $200 on a new game console. How much money does Chris have in the bank account now? | def solve() -> int:
starting_amount = 50
refund = 500
purchase = 200
remaining_amount = starting_amount + refund - purchase
result = remaining_amount
return result
|
A car travels 180 km in 2 hours. What is the average speed of the car? | def solve() -> int:
distance = 180
time = 2
speed = distance / time
result = speed
return result
|
In an election, candidate A and candidate B both got 15K votes each. How much is the total number of votes that were cast? | def solve() -> int:
candA = 15000
candB = 15000
total_votes = candA + candB
result = total_votes
return result
|
Student: If the total number of fish in all three bodies of water is 300, how many fish are in Onum Lake? | def solve() -> int:
total_fish = 300
lake1_fish = 75
lake2_fish = 125
lake3_fish = total_fish - lake1_fish - lake2_fish
onum_fish = lake3_fish
result = onum_fish
return result
|
A tank is being filled with water at a rate of 20 liters per minute. The tank can hold a maximum of 1000 liters. How long will it take to fill the tank? | def solve() -> int:
fillRate = 20
tankCapacity = 1000
fillTime = tankCapacity / fillRate
result = int(fillTime)
return result
|
Rihanna has a music video that has been viewed 120 million times on YouTube. She earns 0.005 dollars for every view. She also has a Spotify account that has 80 million streams of her songs. She earns 0.003 dollars for every stream. How much money has Rihanna earned from YouTube and Spotify combined? | def solve() -> int:
views = 120 * 10**6
streams = 80 * 10**6
earn_view = 0.005
earn_stream = 0.003
money_youtube = views * earn_view
money_spotify = streams * earn_stream
money_total = money_youtube + money_spotify
result = money_total
return result
|
Emily has 1/4 of a box of tissues and 1/3 of a bottle of cough syrup. If she uses 1/10 of a tissue and 1/12 of a bottle of syrup per dose, how many doses can she take? | def solve() -> int:
tissues = 1/4
cough_syrup = 1/3
tissue_per_dose = 1/10
syrup_per_dose = 1/12
doses_tissues = tissues / tissue_per_dose
doses_syrup = cough_syrup / syrup_per_dose
doses = min(doses_tissues, doses_syrup)
result = int(doses)
return result
|
If it took Audrey 5/6ths of the time it took Max to bake 36 cookies, and Harper spent half the time Audrey spent baking, how many cookies did Max bake if Audrey took 2 hours? | def solve() -> int:
audrey_time = 2
max_time = audrey_time * 6/5
harper_time = audrey_time / 2
max_cookies = 36 / max_time * audrey_time
result = max_cookies
return result
|
A carpenter can make a table in 8 hours with hammer. With a power tool, the carpenter can make the same table in 6 hours. How long will it take to make the table if both the hammer and power tool are used? | def solve() -> int:
tables = 1
hammer_time = 8
power_time = 6
total_time = (hammer_time * power_time)/(hammer_time + power_time)
result = total_time
return result
|
Michael Jacksons goes grocery shopping for halloween items. each time he buys 10 products, and each product costs $3.50. After 4 weeks, how much money has he spent on halloween items? | def solve() -> int:
cost = 0
for i in range(1,4):
cost += (10*3.50)
result = cost
return result
|
Emily is making muffins and needs 1 cup of flour. The only measuring cup she has is the 1/5 cup. She has a 7 cup bag of flour and wants to measure the exact amount she needs. How many scoops should she take out of the bag? | def solve() -> int:
bag_of_flour = 7
measuring_cup = 1/5
amount_needed = 1
scoops_needed = amount_needed / measuring_cup
result = scoops_needed
return result
|
A family had a total income of $100,000 last year. If they spent 40% on rent and the rest on other expenses, how much did they spend on other expenses? | def solve() -> int:
total_income = 100000
rent_percent = 0.4
rent_expenses = total_income * rent_percent
other_expenses = total_income - rent_expenses
result = other_expenses
return result
|
Student: Zoe is 8 years younger than Adam. Bella is 4 years older than Zoe. Cole is 24 and is twice as old as Bella. In 6 years, Dylan will be exactly half of Adam's age. How old is Dylan now? | def solve() -> int:
adam_age = 0
zoe_age = 0
bella_age = 0
cole_age = 24
dylan_age = 0
adam_age = zoe_age + 8
bella_age = zoe_age + 4
bella_age = cole_age / 2
dylan_age = adam_age - 6 * 2
result = dylan_age
return result
|
The Garcia's kite was flown into the sky and rose 250 feet above the ground. A frisbee which was on the ground was lifted and blown twice as far as the kite was flown. How far did the frisbee move? | def solve() -> int:
kite_height = 250
frisbee_distance = kite_height * 2
result = frisbee_distance
return result
|
A car travels 240 kilometers in 3 hours. If the car is traveling at a constant speed, what is its speed in kilometers per hour? | def solve() -> int:
distance = 240
time = 3
speed = distance / time
result = speed
return result
|
Student: To make a dozen cookies, it requires 2/3 cups of sugar. How many cups of sugar will be needed to make 120 cookies? | def solve() -> int:
cookies = 120
dozen_cookies = 12
sugar_per_dozen = 2/3
sugar_needed = cookies / dozen_cookies * sugar_per_dozen
result = sugar_needed
return result
|
Harper and Logan are both given $50,000 to invest. Harper invests all of her money in a startup and makes twenty times her initial investment. Logan invests in blue-chip companies and doubles his initial investment. How much more money does Harper have now than Logan? | def solve() -> int:
harper_investment = 50000
logan_investment = 50000
harper_return = harper_investment * 20
logan_return = logan_investment * 2
difference = harper_return - logan_return
result = difference
return result
|
If a cell phone plan costs $25 per month with a $100 activation fee and 10 cents per minute, how many minutes can you use in a month if you have a budget of $75? | def solve() -> int:
monthly_cost = 25
activation_fee = 100
budget = 75
call_time = (budget - monthly_cost - activation_fee)/0.1
result = call_time
return result
|
8. Steven was making a cake and only had two kinds of ingredients. He had to mix together 3 cups of sugar with 9 teaspoons of salt. How much sugar and salt did Steven use in total? | def solve() -> int:
sugar = 3
salt = 9
total_sugar = sugar * 3
total_salt = salt * 2
result = total_sugar+total_salt
return result
|
A store has 150 items for sale. If 1/3 of the items are red, 1/4 of the items are blue, and the rest are white, how many white items are there for sale? | def solve() -> int:
num_items = 150
num_red = num_items * 1/3
num_blue = num_items * 1/4
num_white = num_items - num_red - num_blue
result = num_white
return result
|
Ella is making bracelets with beads and strings. She has 15 blue beads, 12 red beads, and 9 green beads. She wants to make as many bracelets as possible, each with 6 beads of the same color and a string that is 10 inches long. She has 120 inches of string in total. How many bracelets can she make and how many beads of ... | def solve() -> int:
blue_beads = 15
red_beads = 12
green_beads = 9
string = 120
bracelets = 0
leftover_blue = 0
leftover_red = 0
leftover_green = 0
while string > 0 and (blue_beads > 0 or red_beads > 0 or green_beads > 0):
if blue_beads >= 6:
bracelets = brace... |
Aaron has 5 more balloons than Brielle. If they have a total of 34 balloons, how many balloons does each of them have? | def solve() -> int:
balloons_aaron = 0
balloons_brielle = 0
balloons_aaron = 34 - balloons_brielle
balloons_brielle = balloons_aaron - 5
result = balloons_aaron, balloons_brielle
return result
|
A construction worker averages 200 bricks per hour. If a job requires 10,000 bricks, how many total hours will it take to complete the job? | def solve() -> int:
bricks_per_hour = 200
total_bricks = 10000
total_hours = total_bricks / bricks_per_hour
result = total_hours
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.