question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Emma wants to buy a new phone. She has chosen a phone for $800. To be able to pay this price, she needs to loan part of the money from the bank, at a rate of 12%. How much money in total will Emma need to pay for the phone, if she has to take $500 from the bank? | def solve() -> int:
phone_price = 800
loan_amount = 500
interest_rate = 0.12
loan_interest = loan_amount * interest_rate
total_price = phone_price + loan_amount + loan_interest
result = total_price
return result
|
A recipe calls for 3 cups of sugar and 4 cups of flour to make 12 cookies. If you have 6 cups of sugar, how many cookies can you make? | def solve() -> int:
sugar_cups = 6
flour_cups = 4
total_cups = sugar_cups + flour_cups
cookies_per_cups = 12 / (3 + 4)
total_cookies = cookies_per_cups * total_cups
result = total_cookies
return result
|
A bus travels at a speed of 40 km/h. It stops at a few stations for 10, 5, 15, and 20 minutes respectively. If the total distance traveled is 240 km, how long does it take for the entire journey, in minutes? | def solve() -> int:
speed = 40
time_travel = 240 / speed
time_stop = (10 + 5 + 15 + 20) / 60
total_time = time_travel + time_stop
result = total_time * 60
return result
|
In a bakery, there are 270 cakes and one-quarter of them were sold yesterday. How many cakes were not sold yesterday? | def solve() -> int:
sold = 270 * 1/4
not_sold = 270 - sold
result = not_sold
return result
|
Student: A store has 500 items in stock. If 60% of the items are sold, how many items are left in stock? | def solve() -> int:
items_in_stock = 500
percentage_sold = 0.6
items_sold = items_in_stock * percentage_sold
items_left_in_stock = items_in_stock - items_sold
result = items_left_in_stock
return result
|
Bob has a rectangular garden that is 15 meters long and 12 meters wide. He wants to plant roses along the four edges of the garden. Each rose bush needs 0.75 meters of space. How many rose bushes can Bob plant in total? | def solve() -> int:
perimeter = (15 + 12) * 2
roses = perimeter / 0.75
result = roses
return result
|
A farmer has 400 hens. 20% of them are laying eggs. Each hen lays an average of 5 eggs per week. 1/4 of the remaining hens are too young to lay eggs. How many eggs are not laid by the hens every week? | def solve() -> int:
hens = 400
laying_hens = hens * 0.2
eggs_per_hen = 5
eggs_laid_per_week = laying_hens * eggs_per_hen
remaining_hens = hens - laying_hens
too_young_hens = remaining_hens / 4
remaining_hens = remaining_hens - too_young_hens
eggs_not_laid_per_week = remaining_h... |
A class of 30 students took a test. If the average score was 85 and the highest score was 100, what was the lowest score in the class? | def solve() -> int:
num_students = 30
avg_score = 85
highest_score = 100
lowest_score = (2 * avg_score * num_students) - highest_score
result = lowest_score
return result
|
Student: Hannah has six times as many crayons as Noah. Liam has 72 crayons and twice as many as Hannah. How many crayons do the three of them have altogether? | def solve() -> int:
noah = 0
hannah = 0
liam = 72
hannah = liam / 2
noah = hannah / 6
total = noah + hannah + liam
result = total
return result
|
A rectangular field is 150 meters long and 95 meters wide. A road that is 5 meters wide runs along the perimeter of the field, what is the area of the road? | def solve() -> int:
length = 150
width = 95
road_width = 5
road_area = ((length + (2 * road_width)) * (width + (2 * road_width))) - (length * width)
result = f'The area of the road is {road_area} square meters'
result = road_area
return result
|
An office has 5 employees who work 8 hours a day. Each employee's hourly wage is $20. What is the total weekly wage bill for all 5 employees? | def solve() -> int:
num_employees = 5
hours_per_day = 8
hourly_wage = 20
days_per_week = 5
weekly_wage = num_employees * hours_per_day * hourly_wage * days_per_week
result = weekly_wage
return result
|
James has 689 comic books, and Luke has 23% more comic books than James. How many comic books does Luke have? | def solve() -> int:
JamesComicBooks = 689
LukeComicBooksPercentage = 1.23
result = JamesComicBooks * LukeComicBooksPercentage
return result
|
John saves $20 per week for 6 weeks, then saves $30 per week for the next 3 weeks. How much money did John save in total? | def solve() -> int:
savings = (20*6) + (30*3)
result = savings
return result
|
Student: For the birthday party, Sonya wants to make cupcakes using a box mix. She needs 2 eggs and 1/4 cup of oil for each box and she wants to make 48 cupcakes. Each box makes 12 cupcakes and costs $2.50. How much will she spend on the box mix, eggs, and oil? | def solve() -> int:
num_cupcakes = 48
num_boxes = num_cupcakes / 12
cost_box = 2.50
num_eggs = num_boxes * 2
oil_amount = num_boxes * 0.25
total_cost = num_boxes * cost_box + num_eggs + oil_amount
result = total_cost
return result
|
Jessica is solving math problems. She can solve 10 problems in 20 minutes. She spends 25 minutes studying the problem set. If the problem set has 50 problems, how many minutes did she spend solving them? | def solve() -> int:
problems_solved = 10
time_per_problem = 20
total_problems = 50
total_time_spent = (problems_solved / total_problems) * time_per_problem
result = total_time_spent
return result
|
Sam and Lily are trying to figure out how many hours they need to work together to complete their graphic design project. They have 3 sections to complete, including logos, website design, and animations. They figure out that they need to dedicate 2 hours for logos, 3 hours for website design, and 1.5 hours for animati... | def solve() -> int:
logos_hours = 2
website_hours = 3
animations_hours = 1.5
total_hours = logos_hours + website_hours + animations_hours
hours_per_day = 7
break_time = 0.1
total_time_per_day = hours_per_day - break_time
days_needed = total_hours / total_time_per_day
... |
Ethan sells homemade candles. To make two candles, he spends $10 on wax and wicks, and $1 on packaging for each candle. Ethan sells each candle for $18. How much profit does Ethan make for each candle he sells? | def solve() -> int:
wax_and_wicks_cost = 10
packaging_cost_per_candle = 1
selling_price_per_candle = 18
total_cost_per_candle = wax_and_wicks_cost + packaging_cost_per_candle
profit_per_candle = selling_price_per_candle - total_cost_per_candle
result = profit_per_candle
return resu... |
A child has 8 marbles. She wins 4 more marbles. How many marbles does she have in total? | def solve() -> int:
num_marbles = 8
num_marbles += 4
result = num_marbles
return result
|
A bike ride around the lake is 10 miles. If you bike at a constant speed of 6 miles per hour, how long will it take you to finish the ride? | def solve() -> int:
distance = 10
speed = 6
time = distance/speed
result = time
return result
|
A bucket of balls has 150 balls, of which one-third are red, one-fifth are blue, and the rest are green. Half of the red balls are small and half of the blue balls are big. If there are 20 small red balls and 15 big blue balls, how many balls in the bucket are green? | def solve() -> int:
balls = 150
red_balls = (1/3) * balls
blue_balls = (1/5) * balls
green_balls = balls - red_balls - blue_balls
small_red_balls = 20
big_blue_balls = 15
big_red_balls = small_red_balls
small_blue_balls = 2 * big_blue_balls - blue_balls
result = green_balls
... |
At the hardware store, a hammer costs $10.00 and each screwdriver costs $5.00. If Mark buys 2 hammers and 3 screwdrivers, how much will his tools cost? | def solve() -> int:
hammer_price = 10.00
screwdriver_price = 5.00
num_hammers = 2
num_screwdrivers = 3
total_hammer_cost = hammer_price * num_hammers
total_screwdriver_cost = screwdriver_price * num_screwdrivers
total_cost = total_hammer_cost + total_screwdriver_cost
... |
A bag has 6 red marbles and 4 blue marbles. If two marbles are chosen at random from the bag without replacement, what is the probability that both marbles will be blue? | def solve() -> int:
total_marbles = 10
blue_marbles = 4
prob_first_blue = blue_marbles/total_marbles
prob_second_blue = (blue_marbles-1)/(total_marbles-1)
result = prob_first_blue * prob_second_blue
return result
|
David is tracking his distance runs for the past month. He checked his list and saw he ran 150 miles. He ran 4 miles on Monday, Wednesday and Friday and 3 miles on Tuesday, Thursday, Saturday and Sunday. Unfortunately, no data was input on Friday. How many miles did he run on Friday? | def solve() -> int:
total_miles = 150
daily_miles = (4*3) + (3*4)
missing_miles = total_miles - daily_miles
friday_miles = missing_miles / 2
result = friday_miles
return result
|
Kim has 3 apples and 5 oranges. She ate 2 apples and gave 1 orange to her brother. How many fruits does Kim have left? | def solve() -> int:
apples = 3
oranges = 5
apples = apples - 2
oranges = oranges - 1
fruits = apples + oranges
result = fruits
return result
|
A toy store has 100 stuffed animals. If they sell 25% of their stock, how many stuffed animals will be left in the store? | def solve() -> int:
initial_stock = 100
percent_sold = 0.25
remaining_stock = initial_stock * (1 - percent_sold)
result = remaining_stock
return result
|
Tyler has twice as many marbles as baseball cards. If he has 60 marbles, how many baseball cards does he have? | def solve() -> int:
marbles = 60
baseball_cards = marbles / 2
result = baseball_cards
return result
|
John spent $30 on 5 pizzas. What is the cost of 1 pizza? | def solve() -> int:
cost = 30/5
result = f'<<<{cost}>>>'
result = cost
return result
|
Katrina is taking a 12-week online course. She studies 2 hours a day during the weekdays and spends 4 hours each on Saturday and Sunday. What is the total time Katrina spends studying throughout the course? | def solve() -> int:
weeks = 12
weekdays = 5
weekend_days = 2
weekday_hours = 2
weekend_hours = 4
total_weekday_hours = weekdays * weekday_hours * weeks
total_weekend_hours = weekend_days * weekend_hours * weeks
total_study_time = total_weekday_hours + total_weekend_hours
... |
Carla is travelling from Point A to Point B, a distance of 70 km. She has travelled 60 km at a speed of 50 km/h, what should be her speed for the remaining distance if she wants her average speed to be 55 km/h? | def solve() -> int:
distance1 = 60
distance2 = 10
speed1 = 50
avg_speed = 55
time1 = distance1 / speed1
time2 = distance2 / (avg_speed - speed1)
speed2 = distance2 / time2
result = speed2
return result
|
Student: Ansh bought 7 bags of candy that cost $2.50 each. He also bought 4 bags of chips that were half the price. How much did he spend in total? | def solve() -> int:
candy_bags = 7
chip_bags = 4
candy_price = 2.50
chip_price = candy_price / 2
total_candy_cost = candy_bags * candy_price
total_chip_cost = chip_bags * chip_price
result = total_candy_cost + total_chip_cost
return result
|
Gina went to the grocery store to buy oranges for the fruit salad. The price of 1 orange is $0.50. She bought 10 oranges and got 5 free. She paid $3 in total for the oranges. How much discount did she get? | def solve() -> int:
price_per_orange = 0.50
total_oranges_bought = 10
free_oranges_received = 5
total_oranges_received = total_oranges_bought + free_oranges_received
total_cost = 3.00
cost_per_orange = total_cost / total_oranges_received
discount_per_orange = price_per_orange - cost_per_oran... |
Karen walks from her apartment to the mall. Then she walks, at the same speed, twice the distance to the movie theater. It takes Karen five times as long to walk from her apartment to the mall as it takes to walk from the mall to the movie theater. If Karen and her friend now walk back to the mall together, how many mi... | def solve() -> int:
apartment_to_mall_distance = 5
mall_to_theater_distance = apartment_to_mall_distance * 2
total_distance = apartment_to_mall_distance + mall_to_theater_distance
result = total_distance * 2
return result
|
Student: Terence has 20 coins. He has $2. How much money does each coin worth? | def solve() -> int:
coins = 20
money = 2
coin_worth = money / coins
result = coin_worth
return result
|
In a school, 42% of the students are boys. If there are 240 boys, how many students are there in total? | def solve() -> int:
boy_percentage = 0.42
boy_count = 240
total_students = boy_count / boy_percentage
result = total_students
return result
|
Tom bought 6 books for $12 each, 4 pens for $4 each and 3 notebooks costing $100 for the whole set. What was his total bill? | def solve() -> int:
books = 6
book_price = 12
pens = 4
pen_price = 4
notebooks = 3
notebook_price = 100
total_books_cost = books * book_price
total_pens_cost = pens * pen_price
total_notebooks_cost = notebooks * notebook_price
total_bill = total_books_cost + total_pens_... |
A car travels from city A to city B at an average speed of 60 km/h. On the way back, the car encounters traffic and its average speed is reduced to 40 km/h for the same distance. If the round trip between City A and City B took 10 hours, what is the distance between the two cities (assume the distance is the same in bo... | def solve() -> int:
d = 240
distance = d/2
result = distance
return result
|
Greg has 12 blocks, 6 are blue and the other 6 are yellow. If he places them in a row, how many possible arrangements can he make? | def solve() -> int:
def arrangement_count(blocks, yellow, blue):
arrangements = 0
if blocks == (yellow + blue):
combinations = yellow + 1
arrangements = combinations ** blocks
return arrangements
blue = 6
yellow = 6
blocks = 12
result = ... |
A cyclist travels 12.6 km in one hour and 20 minutes. What is their speed in kilometers per hour? | def solve() -> int:
distance = 12.6
time = 1.33
speed = distance/time
result = speed
return result
|
Ethan has a collection of 250 baseball cards. 60 of them, Ethan bought for $8 each. Of the rest, 20% were bought for $5. All others had a price of $3 each. How much did Ethan spend on all the baseball cards in his collection? | def solve() -> int:
baseball_cards = 250
certain_cards = 60
certain_price = 8
uncertain_cards = baseball_cards - certain_cards
uncertain_cards_2 = uncertain_cards * 0.2
uncertain_price_1 = 5
uncertain_price_2 = 3
cost = certain_cards * certain_price + uncertain_cards_2 * uncertain_price_... |
The school's basketball team has 24 games scheduled for the season. If they have won half of their games so far, how many more games do they need to win in order to have a winning season? | def solve() -> int:
total_games = 24
games_won = total_games / 2
games_needed_to_win = total_games - games_won
result = games_needed_to_win
return result
|
A certain sum of money doubles in 10 years at a certain rate of interest. What is the rate of interest? | def solve() -> int:
doubling_time = 10
interest_rate = 0
result = interest_rate
return result
|
Daniel and his friends watched two episodes of a TV show with a total length of 1 hour and 40 minutes. The first episode is 10 minutes shorter than the second. Before the episodes, they spent 25 minutes making popcorn and twice as long making pizza. How long, in hours, did it take Daniel and his friends to cook and wat... | def solve() -> int:
total_length = 100
popcorn_time = 25
pizza_time = 2 * popcorn_time
second_episode = (total_length - popcorn_time - pizza_time) / 2
first_episode = second_episode - 10
total_time = (total_length + popcorn_time + pizza_time) / 60
result = total_time
return re... |
Student: A math test has 50 questions. If the score is based on points, with 4 points for a correct answer and -1 point for a wrong answer, and Sarah got 42 correct answers and 6 wrong answers, what is Sarah's score? | def solve() -> int:
num_questions = 50
points_correct = 4
points_wrong = -1
num_correct = 42
num_wrong = 6
score = (num_correct * points_correct) + (num_wrong * points_wrong)
result = score
return result
|
If Pierre has $273 saved in the bank and then spends $83, how much money is left in his bank account? | def solve() -> int:
amountSaved = 273
amountSpent = 83
remainingBalance = amountSaved - amountSpent
result = remainingBalance
return result
|
A car's gasoline tank can hold up to 15 gallons of gasoline. If there are already 5 gallons in the tank, how much more gasoline can be added? | def solve() -> int:
max_gasoline = 15
current_gasoline = 5
gasoline_to_be_added = max_gasoline - current_gasoline
result = gasoline_to_be_added
return result
|
A pool holds 20000 litres of water. If it loses 6000 litres of water due to evaporation, what percentage of water is left in the pool? | def solve() -> int:
initial_water = 20000
evaporated_water = 6000
remaining_water = initial_water - evaporated_water
percentage_remaining = (remaining_water / initial_water) * 100
result = percentage_remaining
return result
|
Student: Hal and Joe are playing a game of basketball. Hal scored three times as many points as Joe. If Hal scored 27 points in the game, how many points did Joe score? | def solve() -> int:
hal_points = 27
joe_points = hal_points / 3
result = joe_points
return result
|
A restaurant owner earns $10 per plate of food. She serves 100 plates per day and spends $300 on ingredients and $500 on cleaning and utilities. Calculate the total profit for a month with 30 days. | def solve() -> int:
income_per_plate = 10
plates_per_day = 100
days_per_month = 30
expense_1 = 300
expense_2 = 500
total_income = income_per_plate * plates_per_day * days_per_month
total_expenses = (expense_1 + expense_2) * days_per_month
total_profit = total_income - total_expenses... |
Kathy works as a stock trader and starts her workday at 8:30 AM. She has a stock meeting at a nearby restaurant at 11:45 AM. If she plans to work for 3 hours and 15 minutes, how many minutes does she have left until she needs to leave for the meeting? | def solve() -> int:
start_time = 8*60 + 30
end_time = start_time + 3*60 + 15
meeting_time = 11*60 + 45
time_left = meeting_time - end_time
result = time_left
return result
|
A hiker is trying to decide whether to take the shorter or longer trail up a mountain. If he takes the shorter trail, it will take him 1 hour and 20 minutes. If he takes the longer trail, he will hike for 45 minutes, then rest for 10 minutes before continuing the rest of the way for twice as long as it would have taken... | def solve() -> int:
short_trail_time = 1 * 60 + 20
long_trail_hike_time = 45
long_trail_rest_time = 10
long_trail_total_time = long_trail_hike_time + long_trail_rest_time + 2 * short_trail_time
time_saved = long_trail_total_time - short_trail_time
result = time_saved
return result
|
A group of 8 students and 4 teachers went on a field trip. The cost of one student's ticket is half the cost of one teacher's ticket, and the total cost was $120. How much is one student's ticket? | def solve() -> int:
students = 8
teachers = 4
total_cost = 120
student_ticket_cost = total_cost / (students + teachers) / 1.5
result = student_ticket_cost
return result
|
Student: Nellie bought 14 books for her business. Each book cost $12.25. How much money did Nellie spend in total? | def solve() -> int:
num_books = 14
price_per_book = 12.25
total_cost = num_books * price_per_book
result = total_cost
return result
|
A pet store sold 30 bags of dog food for $20.00 each, 12 cat toys for $5.00 each, and 6 bird cages for $50.00 each. How much money did the pet store make? | def solve() -> int:
num_bags_dog_food = 30
price_per_bag_dog_food = 20.00
num_cat_toys = 12
price_per_cat_toy = 5.00
num_bird_cages = 6
price_per_bird_cage = 50.00
total_money_dog_food = num_bags_dog_food * price_per_bag_dog_food
total_money_cat_toys = num_cat_toys * price... |
Ariel's farm harvested 600 kg of apples and packed them in bags of 10 kg each. She sold half of the bags to a supermarket and donated the rest to a school. However, the supermarket rejected 30 bags because they were bruised and the school returned 20 bags because they were rotten. What's the total weight of apples that... | def solve() -> int:
apples = 600
bag = 10
bags = apples / bag
bags_sold = bags / 2
bags_donated = bags / 2
bags_rejected_supermarket = 30
bags_returned_school = 20
bags_accepted_supermarket = bags_sold - bags_rejected_supermarket
bags_accepted_school = bags_donated - bags_returned_sc... |
The price of a shirt was $25. After a discount of 20%, the final price became $20. What was the original discount on the shirt? | def solve() -> int:
shirt_price = 25
final_price = 20
discount_percent = ((shirt_price - final_price) / shirt_price) * 100
result = discount_percent
return result
|
Jay received $84 for his birthday. He can buy 4 gift boxes for $20 each, or 3 gift boxes of $21 plus a toy for $12. Which option should he choose to pay the least for his gift boxes? | def solve() -> int:
cash_received = 84
price_4box = 20
price_3box = 21
price_toy = 12
cost_4box = 4 * price_4box
cost_3box = price_3box * 3 + price_toy
if cost_4box < cost_3box:
option = "4 box"
else:
option = "3 box"
result = option
ret... |
Ben collected 36 stamps in a month. He bought 6 more stamps from a store. The next day, he lost 4 stamps and found 3 stamps on the street. How many stamps did he have at the end of the month? | def solve() -> int:
stamps = 36 + 6
stamps = stamps - 4
stamps = stamps + 3
result = stamps
return result
|
Sarah wants to go on a vacation. She books a flight for $400 and a hotel room for $150 per night for 5 nights. She also sets aside $50 for souvenirs and $100 for meals. How much will Sarah's vacation cost in total? | def solve() -> int:
flight_cost = 400
hotel_cost_per_night = 150
num_nights = 5
souvenir_cost = 50
meal_cost = 100
hotel_cost_total = hotel_cost_per_night * num_nights
total_cost = flight_cost + hotel_cost_total + souvenir_cost + meal_cost
result = total_cost
return re... |
Eliott has 40 coins. There are twice as many toonies as loonies. How much money is in the jar? | def solve() -> int:
coins = 40
loonies = 0
toonies = 0
while coins > 0:
if coins >= 2:
loonies += 1
coins -= 2
else:
toonies += 1
coins -= 1
total_value = loonies * 1 + toonies * 2
result = total_value
return result
|
A store has a sale for 15% off. If a shirt costs $20, how much will it cost on sale? | def solve() -> int:
original_price = 20
sale_percent = 15
discount = (sale_percent/100) * original_price
sale_price = original_price - discount
result = sale_price
return result
|
A rectangular table has a surface area of 98 meters. If the length of the table is 14 meters, what is the width of the table? | def solve() -> int:
area_of_table = 98
length_of_table = 14
width_of_table = area_of_table / length_of_table
result = width_of_table
return result
|
Student: A basketball player scored 360 points in a season. If he scored 3/8 of the points in the first half and 1/4 of the points in the second half, how many points did he score in the second half? | def solve() -> int:
total_points = 360
first_half_points = 3/8 * total_points
second_half_points = 1/4 * total_points
result = second_half_points
return result
|
An election had 456 voters in total. If 132 voters voted, how many more voters are needed for the election to be complete? | def solve() -> int:
total_voters = 456
number_voted = 132
voters_needed = total_voters - number_voted
result = voters_needed
return result
|
A company sold 350 units of a product in the first quarter, then 450 units in the second quarter. What percentage increase did the company experience from the first quarter to the second quarter? | def solve() -> int:
first_quarter = 350
second_quarter = 450
increase = ((second_quarter - first_quarter) / first_quarter) * 100
result = increase
return result
|
Nathan has a restaurant with 9 sections of 7 tables. It takes 8 minutes to clean each table. He gets help to clean the tables so it only takes half as long. How many hours did he spend cleaning tables? | def solve() -> int:
num_sections = 9
num_tables_per_section = 7
time_to_clean_table = 8
cleaning_time_multiplier = 0.5
total_tables = num_sections * num_tables_per_section
total_cleaning_time = total_tables * time_to_clean_table * cleaning_time_multiplier
hours_spent_cleaning = tot... |
Dylan has $45 and Lena has $22.5. If Dylan gives Lena one-fourth of his money, Lena will have more than Dylan. But then Lena loses $3. How much more money than Dylan does Lena have now? | def solve() -> int:
dylan_money = 45
lena_money = 22.5
dylan_money -= dylan_money / 4
lena_money += dylan_money / 4
lena_money -= 3
difference = lena_money - dylan_money
result = difference
return result
|
A bakery made 200 cupcakes with 25 cups of flour. How many cupcakes can be made with 40 cups of flour? | def solve() -> int:
cupcakes = 200
flour = 25
new_flour = 40
result = (cupcakes / flour) * new_flour
return result
|
Jake orders 8 sets of Legos each consisting of 400 pieces. He expects to finish putting together 20 pieces in 2 minutes. How long would it take him to complete all 8 sets of Legos? | def solve() -> int:
lego_sets = 8
pieces_per_set = 400
total_pieces = lego_sets * pieces_per_set
pieces_per_minute = 20
minutes_to_complete = total_pieces / pieces_per_minute
result = minutes_to_complete
return result
|
Chad bought a toy car for $30. He gave $20 as downpayment and then paid the rest of the amount with 4 monthly payments of $5. How much did Chad pay in total? | def solve() -> int:
downpayment = 20
monthly_payment = 5
number_of_monthly_payments = 4
total_payments = downpayment + (monthly_payment*number_of_monthly_payments)
result = total_payments
return result
|
David is managing a team of 49 employees, but he only communicates with the employees whose employee IDs end in 5. If he spends 5 minutes communicating with each employee, how many hours does he spend communicating with the team in total? | def solve() -> int:
num_employees = 49
time_per_employee = 5
num_communicated = num_employees // 10 + (num_employees % 10 == 5)
total_time = num_communicated * time_per_employee / 60
result = total_time
return result
|
A book costs $20. If a customer has a coupon for 15% off, how much does the customer have to pay for the book? | def solve() -> int:
book_price = 20
discount = 0.15
price_after_discount = book_price - (book_price * discount)
result = price_after_discount
return result
|
A vase is on sale for 20% off its original price of $50. How much will the vase cost? | def solve() -> int:
original_price = 50
discount_percentage = 20
discount_amount = original_price * (discount_percentage / 100)
new_price = original_price - discount_amount
result = round(new_price, 2)
return result
|
Martin needs 3/4 of a liter of paint to paint one wall. How many walls can he paint with 9 liters of paint? | def solve() -> int:
paint_per_wall = 3/4
total_paint = 9
walls = total_paint/paint_per_wall
result = walls
return result
|
At a garden center, you can get a 20% discount if you buy more than six plants. If Amanda paid $90 for eight plants, what was the original price? | def solve() -> int:
plants = 8
discounted_price = 90
original_price = discounted_price / (1 - 0.2)
result = original_price
return result
|
Kevin begins exercising at 7:00 and finishes at 9:00. On the second day, he takes 30 more minutes than it took on the first day to finish exercising. On the third day, he exercises for three times the amount of time it took on the second day. Calculate the total time Kevin spent exercising in the three days. | def solve() -> int:
start_time_day1 = 7.0
end_time_day1 = 9.0
total_time_day1 = end_time_day1 - start_time_day1
total_time_day2 = total_time_day1 + 0.5
total_time_day3 = 3 * total_time_day2
total_time = total_time_day1 + total_time_day2 + total_time_day3
result = total_ti... |
Two boats are racing in a lake. The first boat travels at an average speed of 15 knots, while the second boat travels at an average speed of 12 knots. After 2 hours, the second boat stops for a break. For how long can the second boat remain stopped before the first boat catches up with it? | def solve() -> int:
first_boat_speed = 15
second_boat_speed = 12
time = 2
distance_covered_by_first_boat = first_boat_speed * time
time_to_catch_up = distance_covered_by_first_boat / (first_boat_speed - second_boat_speed)
result = time_to_catch_up - time
return result
|
Mary has a rectangular piece of cloth that is 3 meters by 5 meters. She wants to sew curtains for her bedroom windows using the cloth. If one curtain requires 2 square meters of cloth, how many curtains can Mary make from the piece of cloth? | def solve() -> int:
length = 3
width = 5
area_of_cloth = length * width
area_of_one_curtain = 2
number_of_curtains = area_of_cloth // area_of_one_curtain
result = number_of_curtains
return result
|
In a new survey it is found that 20% of families own a boat, 10% of families own a jet ski and 5% of families own both a boat and a jet ski. What percent of the families own either a boat or a jet ski? | def solve() -> int:
result = None
num_families_own_either = 20 + 10 - 5
percent_families_own_either = num_families_own_either
result = percent_families_own_either
return result
|
A bag consists of 20 balls out of which x are black. If one ball is drawn at random from the bag, what is the probability that it will be a black ball? | def solve() -> int:
x = 0
total_balls = 20
probability_of_black_ball = x/total_balls
result = probability_of_black_ball
return result
|
There were 20 cars in a parking lot. A half of the cars were blue, but only a fifth of the blue cars had sunroofs. How many of the cars that had sunroofs were also blue? | def solve() -> int:
blue_cars = 20 * (1/2)
sunroof_cars = blue_cars * (1/5)
result = sunroof_cars
return result
|
A bakery sells cakes and pies. The cost of one cake is $12 and the cost of one pie is $8. The bakery makes 40% profit on each cake and 25% profit on each pie sold. If the bakery sells 15 cakes and 30 pies in one day, what is their total profit? | def solve() -> int:
cake_profit = 12 * 0.4
pie_profit = 8 * 0.25
total_cake_profit = cake_profit * 15
total_pie_profit = pie_profit * 30
total_profit = total_cake_profit + total_pie_profit
result = total_profit
return result
|
A bottle of water costs 1/6 of the cost of a soda. If a soda costs $1.80, how much will it cost to buy 4 sodas and 18 bottles of water? | def solve() -> int:
water_cost = 1.80 / 6
soda_cost = 1.80 * 4
water_total = water_cost * 18
result = soda_cost + water_total
return result
|
A burger restaurant sells burgers for $5 each, but offers a 10% discount if 3 or more burgers are purchased. If John buys 4 burgers, what is the total cost? | def solve() -> int:
num_burgers = 4
price_per_burger = 5
total_cost = num_burgers * price_per_burger
if num_burgers >= 3:
total_cost *= 0.9
result = total_cost
return result
|
Student: Julia wants to divide 75 pieces of candy evenly among 9 people. How many pieces of candy will each person get? | def solve() -> int:
num_candy = 75
num_people = 9
result = num_candy // num_people
return result
|
Sarah has 20 pencils, 6 erasers, and 4 sharpeners. If she divides her supplies evenly among 5 of her friends, how many items will each friend receive? | def solve() -> int:
pencils = 20
erasers = 6
sharpeners = 4
total_items = pencils + erasers + sharpeners
num_friends = 5
items_per_friend = total_items // num_friends
result = items_per_friend
return result
|
Student: Brady has oranges and apples in the ratio of 5:9, with the total number of fruits being 182. If he eats 18 oranges and 12 apples, how many fruits does he have left? | def solve() -> int:
oranges_to_apples_ratio = 5/9
total_fruits = 182
oranges = total_fruits / (1 + oranges_to_apples_ratio)
apples = total_fruits - oranges
oranges_left = oranges - 18
apples_left = apples - 12
fruits_left = oranges_left + apples_left
result = fruits_left
return resu... |
The zoo wants to build a new enclosure for the gorillas. Each enclosure requires 25 trees for the gorillas to play on. The zoo has 350 trees. How many enclosures can they build? | def solve() -> int:
trees = 350
trees_per_enclosure = 25
enclosures = trees//trees_per_enclosure
result = enclosures
return result
|
A pizza shop sells a large pizza for $14 and a medium pizza for $10. Kevin orders 3 large pizzas and 2 medium pizzas and gets a free medium pizza. If he has to pay a 10% sales tax, how much does he have to pay in total? | def solve() -> int:
original_price = 3 * 14 + 2 * 10
final_price = original_price - 10
sales_tax = final_price * 0.1
total_amount = final_price + sales_tax
result = total_amount
return result
|
Student: Ameer wants to calculate his average speed if he rides his bike for 24 minutes. He starts at a speed of 6 mph and increases his speed by 1 mph every 4 minutes. | def solve() -> int:
start_speed = 6
increase_speed = 1
time = 24
distance = start_speed * time
time_increase = time // 4
total_increase = increase_speed * time_increase
final_speed = start_speed + total_increase
result = distance / time
return result
|
Kelly is buying peaches for $4 per kg. If she would get a 25% discount on each kg of peaches, how much would she pay for 10 kg of them? | def solve() -> int:
amount_of_peaches = 10
price_of_each_kg = 4
discount_percentage = 25
discount = price_of_each_kg * amount_of_peaches * discount_percentage / 100
cost_of_peaches = price_of_each_kg * amount_of_peaches - discount
result = cost_of_peaches
return result
|
If a bicycle costs $150 and is discounted by 25%, what is the final cost of the bicycle? | def solve() -> int:
original_cost = 150
discount = 0.25
result = original_cost*(1-discount)
return result
|
A rectangle has a length of 8 meters and a width of 6 meters. What is its perimeter? | def solve() -> int:
length = 8
width = 6
perimeter = 2 * (length + width)
result = perimeter
return result
|
Ava needs to buy 12 pencils that each cost 50 cents, four erasers that each cost 20 cents, and one ruler that costs 75 cents. There are 100 cents to a dollar. How much will Ava pay total, in cents? | def solve() -> int:
pencil_cost = 50
eraser_cost = 20
ruler_cost = 75
pencil_quantity = 12
eraser_quantity = 4
ruler_quantity = 1
total_cost = (pencil_cost * pencil_quantity) + (eraser_cost * eraser_quantity) + (ruler_cost * ruler_quantity)
result = total_cost
return r... |
If a school has 900 students and 40% of them are in the middle school, how many students are in the middle school? | def solve() -> int:
total_students = 900
middle_school_students = total_students * 0.4
middle_school_students = round(middle_school_students)
result = middle_school_students
return result
|
A bakery has 12 ovens, each with six racks. Each rack can bake 30 cookies at a time. How many cookies can be baked at once in the bakery? | def solve() -> int:
ovens = 12
racks_per_oven = 6
cookies_per_rack = 30
total_cookies = ovens * racks_per_oven * cookies_per_rack
result = total_cookies
return result
|
Student: Corey is 8 cm shorter than Rebecca and 5 cm taller than David. If David is 175 cm tall, how tall is Rebecca? | def solve() -> int:
corey = 0
rebecca = 0
david = 175
corey = rebecca - 8
corey = david + 5
rebecca = david + 5 + 8
rebecca = david + 13
rebecca = 175 + 13
result = rebecca
return result
|
Student: A box of crayons contains 1/4 red crayons, 1/5 green crayons, and the rest are blue. Half the blue crayons are metallic and 1/6 of the green crayons are sparkly. If Jerry draws one crayon at random, what is the probability that the crayon is not sparkly or metallic? | def solve() -> int:
red_crayons = 1/4
green_crayons = 1/5
blue_crayons = 1 - red_crayons - green_crayons
metallic_blue_crayons = blue_crayons / 2
sparkly_green_crayons = green_crayons / 6
total_crayons = red_crayons + green_crayons + blue_crayons
non_sparkly_or_metallic_crayons = red_crayons... |
If Kim has 8 pieces of paper and she needs to divide them into groups of 4, how many groups can she make? | def solve() -> int:
paper = 8
group_size = 4
total_groups = paper // group_size
result = total_groups
return result
|
The diameter of a circle is 14 cm. What is the radius of the circle? | def solve() -> int:
diameter = 14
radius = diameter / 2
result = radius
return result
|
A rectangular garden has a perimeter of 28 meters, and a length twice its width. Find the area of the garden. | def solve() -> int:
perimeter = 28
length = 0
width = 0
width = perimeter / 6
length = 2*width
area_of_garden = length * width
result = area_of_garden
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.