question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Mia is practicing her multiplication facts. She can answer 12 questions in 3 minutes, and each question has two digits times one digit. She wants to challenge herself and try to answer 15 questions in the same time, but each question has two digits times two digits. How many more digits does she have to multiply in tot... | def solve() -> int:
digits_12 = 12 * (2 + 1)
digits_15 = 15 * (2 + 2)
result = digits_15 - digits_12
return result
|
Watermelons used to cost $4.5 per pound. The price got raised 15%. How much does it cost to buy 2.5 pounds of watermelons for each person in a 5 member family? | def solve() -> int:
price_per_pound = 4.5
raise_percentage = 15
pounds_per_person = 2.5
family_members = 5
new_price_per_pound = price_per_pound * (1 + raise_percentage/100)
total_cost_per_person = new_price_per_pound * pounds_per_person
total_cost_for_family = total_cost_per_... |
At a party, there are 40 attendees. If they consume 20 litres of soda, how many millilitres of soda does each attendee drink, assuming they all have equal shares? | def solve() -> int:
attendees = 40
soda_quantity = 20000
soda_per_person = soda_quantity / attendees
result = soda_per_person
return result
|
During a sale, a store has a 20% discount on all items. If the price of a shirt is initially $25, how much does the shirt cost during the sale? | def solve() -> int:
initial_price = 25
discount_percent = 0.2
discounted_price = initial_price * (1 - discount_percent)
result = discounted_price
return result
|
Hannah is painting her room. She needs to paint 4 walls. Each wall is 8 feet tall and 12 feet wide. The paint she wants to buy covers 200 square feet per gallon. How many gallons of paint does she need to buy? | def solve() -> int:
wall_height = 8
wall_width = 12
wall_area = wall_height * wall_width
total_area = wall_area * 4
paint_coverage = 200
gallons_needed = total_area / paint_coverage
result = gallons_needed
return result
|
A rectangle has a width of 20 m and an area of 400 m^2. What is the length of the rectangle? | def solve() -> int:
area = 400
width = 20
length = area / width
result = length
return result
|
A recipe calls for 2 cups of flour to make 8 cookies. If you want to make 24 cookies, how many cups of flour do you need? | def solve() -> int:
cookies = 24
flourpercookie = 2 / 8
flour = cookies * flourpercookie
result = flour
return result
|
At a grocery store, bananas are sold for $0.60 each. If you buy 12 bananas, how much do they cost in total? | def solve() -> int:
price_per_banana = 0.6
number_of_bananas = 12
total_cost = price_per_banana * number_of_bananas
result = total_cost
return result
|
A tank can be filled by two taps in 12 minutes and 15 minutes respectively. In how many minutes will the tank be filled if both taps are opened together? | def solve() -> int:
tap1_time = 12
tap2_time = 15
x = (tap1_time * tap2_time) / (tap1_time + tap2_time)
result = x
return result
|
John, Sarah and Jack had a coin collection competition. At the start, Sarah had double the amount of coins that Jack had, and John had the same amount of coins as Sarah. In the end, Jack had 5 times the amount of coins he initially had, Sarah had 4 times her original amount of coins, and John had the same amount of coi... | def solve() -> int:
total = 0
jack = 0
sarah = 0
john = 0
jack = 0.5*sarah
john = sarah
jack = 5*jack
sarah = 4*sarah
total = jack + sarah + john
jack = total/10
sarah = 2*jack
john = sarah
result = john - jack
re... |
Student: John paid $15 for a toy car and $4 for batteries. How much did he spend in total? | def solve() -> int:
toy_car = 15
batteries = 4
total = toy_car + batteries
result = total
return result
|
A car travels at a speed of 80 km/h. If it drives for 3.5 hours, how far has it traveled? | def solve() -> int:
speed = 80
time = 3.5
distance = speed*time
result = distance
return result
|
Rachel is studying for a test. She studied for 3 and a half hours on Monday and 5 and a half hours on Tuesday. How many hours total did she study? | def solve() -> int:
hours_monday = 3.5
hours_tuesday = 5.5
total_hours = hours_monday + hours_tuesday
result = total_hours
return result
|
Each apple costs $1.50 and each mango costs $2.30. If Jenna bought 5 apples and 3 mangoes, how much did she spend? | def solve() -> int:
apple_cost = 1.50
mango_cost = 2.30
total_cost = (apple_cost*5) + (mango_cost*3)
result = total_cost
return result
|
A pool is 6 meters long, 3 meters wide, and 2 meters deep. How many liters of water are needed to fill the pool? | def solve() -> int:
volume_of_pool = 6*3*2
liters_of_water = volume_of_pool*1000
result = liters_of_water
return result
|
Jenny invested $1500 in a company and received 6% profit on her investment. How much profit does she make in a year? | def solve() -> int:
investment = 1500
profit_percentage = 6
profit = (investment * profit_percentage) / 100
result = profit
return result
|
You have 120 yards of fencing to enclose a rectangular area. If you want the area to be maximum, what should be the dimensions of the rectangular area? | def solve() -> int:
total_fencing = 120
length = total_fencing/4
width = total_fencing/4
area = length*width
result = area
return result
|
The swimming team members swam a total of 3,360 laps in 5 days. How many laps did each person swim per day? | def solve() -> int:
total_laps = 3360
days = 5
laps_per_person = total_laps / days
result = laps_per_person
return result
|
Noah and Leo are collecting stickers. They have a total of 180 stickers and they want to put them in albums. Each album has 12 pages and each page can hold 8 stickers. How many albums do they need to buy if they want to fill up all the pages without leaving any empty spaces? | def solve() -> int:
stickers_per_album = 12 * 8
albums = 180 // stickers_per_album
remainder = 180 % stickers_per_album
if remainder!= 0:
albums = albums + 1
result = albums
return result
|
A rectangle has a width of 8 inches and a length of 16 inches. What is the perimeter of the rectangle? | def solve() -> int:
width = 8
length = 16
perimeter = 2 * (width + length)
result = perimeter
return result
|
A class has 25 students. If the pass rate is 70%, how many students passed the exam? | def solve() -> int:
total_students = 25
pass_rate_percentage = 70
pass_rate = pass_rate_percentage/100
students_passed = pass_rate*total_students
result = students_passed
return result
|
There are 20 students and 15 parents in a school meeting. Each student and adult has to pay $2. How much will the school earn in total? | def solve() -> int:
num_students = 20
num_adults = 15
cost_per_person = 2
total_fee = num_students * cost_per_person + num_adults * cost_per_person
result = total_fee
return result
|
A swimmer can swim 45 yards underwater in 1 minute. How far can the swimmer swim in 5 minutes? | def solve() -> int:
total_distance = 45 * 5
result = total_distance
return result
|
Ethan sees four statues in a museum and decides to estimate their heights. He knows from a tour guide that the one in the middle is 120 inches tall. The one on the left looks like it is 60% of the height of the middle one. The one on the right looks 30 inches shorter than if the building on the left and middle were sta... | def solve() -> int:
middle_height = 120
left_height = 0.6 * middle_height
right_height = (left_height + middle_height) - 30
total_height = left_height + middle_height + right_height
result = total_height
return result
|
A company produces 1000 units for 2 weeks, then 2000 units for the next 5 weeks, and then 5000 units for the next 5 weeks. How many units did the company produce over 12 weeks? | def solve() -> int:
units_week1 = 1000
units_week2 = 2000
units_week3 = 5000
total_units = units_week1 * 2 + units_week2 * 5 + units_week3 * 5
result = total_units
return result
|
Rachel and Mark need to pack boxes for a move. Rachel can pack 8 boxes per hour for 4 hours, while Mark can pack 5 boxes per hour for 6 hours. How many boxes can they pack together? | def solve() -> int:
rachel_rate = 8
rachel_time = 4
rachel_boxes = rachel_rate * rachel_time
mark_rate = 5
mark_time = 6
mark_boxes = mark_rate * mark_time
total_boxes = rachel_boxes + mark_boxes
result = total_boxes
return result
|
John bought 4 packs of pencils with 16 pencils each and then later bought 2 packs of 24 pencils. How many pencils did he buy in total? | def solve() -> int:
total_pencils = 4*16 + 2*24
result = total_pencils
return result
|
Amy's team is participating in a trivia contest. There are three rounds, each with 10 questions worth different points. In the first round, each question is worth 5 points, in the second round, each question is worth 10 points, and in the third round, each question is worth 15 points. Amy's team answered four times as ... | def solve() -> int:
first_questions = 0
second_questions = 0
third_questions = 6
first_points = 5
second_points = 10
third_points = 15
total_score = 0
first_questions = 4 * third_questions
second_questions = third_questions + 2
total_score = first_questions * fir... |
During a windy day, five kites flew in the park. They were joined by one less than three times as many kites, before four of them were tangled and taken down. How many kites remained? | def solve() -> int:
kites_flew = 5
kites_joined = (3 * kites_flew) - 1
kites_taken_down = 4
kites_remained = kites_flew + kites_joined - kites_taken_down
result = kites_remained
return result
|
Student: Sophie went on a 5-mile hike. She walked the first mile in 10 minutes, the second mile in 15 minutes, the third mile in 20 minutes, the fourth mile in 25 minutes, and the fifth mile in 30 minutes. What was her average pace in minutes per mile? | def solve() -> int:
mile1 = 10
mile2 = 15
mile3 = 20
mile4 = 25
mile5 = 30
total_time = mile1 + mile2 + mile3 + mile4 + mile5
average_pace = total_time / 5
result = average_pace
return result
|
arah is buying books. She has $200 to spend. Each book costs $14.99. How many books can she buy with her money? | def solve() -> int:
total_money = 200
price = 14.99
books = total_money // price
result = books
return result
|
Lucas earns $50,000 annually. He spends $12,000 per year on rent, $3000 on groceries, and $5000 on his car. If he wants to have at least $20,000 left every year, how much more should he earn? | def solve() -> int:
annual_income = 50000
rent = 12000
groceries = 3000
car_expenses = 5000
savings_goal = 20000
total_expenses = rent + groceries + car_expenses
remaining_income = annual_income - total_expenses
additional_income_needed = savings_goal - remaining_income
res... |
Leo had 22 seashells from the beach. He lost 1/3 of what he had and then found twice as many seashells as he had. How many seashells does Leo have now? | def solve() -> int:
seashells = 22
lost = seashells / 3
remaining = seashells - lost
found = remaining * 2
result = found
return result
|
Tina and Toni went shopping. Tina spent ¥180 on oranges and Toni spent ¥400 on apples. How much did they spend altogether in the same currency? | def solve() -> int:
def spent_total(money_one, money_two):
return money_one + money_two
money_one = 180
money_two = 400
result = spent_total(money_one, money_two)
return result
|
Ben ran for half an hour at a speed of 8 kilometers per hour, then walked for 45 minutes at a speed of 4 kilometers per hour. How far did he travel in total? | def solve() -> int:
running_time = 0.5
walking_time = 0.75
running_distance = running_time * 8
walking_distance = walking_time * 4
total_distance = running_distance + walking_distance
result = total_distance
return result
|
There are 9 pizzas that 36 people need to share evenly. How many slices will each person get? | def solve() -> int:
total_pizzas = 9
num_people = 36
total_slices = total_pizzas * 8
each_person = total_slices/num_people
result = each_person
return result
|
A recipe for a cake requires 300 g of flour, 200 g of sugar, and 100 g of butter. A baker wants to make 5 cakes, but he only has 1200 g of flour, 800 g of sugar, and 400 g of butter. What is the maximum number of cakes he can make with the ingredients he has? | def solve() -> int:
cakes_with_flour = 1200 / 300
cakes_with_sugar = 800 / 200
cakes_with_butter = 400 / 100
limiting_ingredient = min(cakes_with_flour, cakes_with_sugar, cakes_with_butter)
max_cakes = limiting_ingredient
result = max_cakes
return result
|
A company has 100 employees. If 20% of them are on vacation, how many employees are still working? | def solve() -> int:
employees = 100
vacation_percentage = 20
vacation_count = employees * vacation_percentage / 100
working_count = employees - vacation_count
result = working_count
return result
|
In a fast food restaurant, a value meal consists of 1 burger, 1 order of fries, and a soda. One burger costs $2.50. One order of fries costs $1.75. A soda costs $1.25. What is the total cost of the value meal? Katie and Bob assembled 300 toys. If Bob assembled 4 times as many toys as Katie, minus 70, how many toys did ... | def solve() -> int:
burger_cost = 2.50
fries_cost = 1.75
soda_cost = 1.25
total_cost = burger_cost + fries_cost + soda_cost
result = total_cost
return result
|
If it takes Bob 6 hours to mow a lawn, how long will it take Bob and Mike, who mows at the same pace, to mow the same lawn together? | def solve() -> int:
bob_mow_time = 6
mike_mow_time = bob_mow_time
bob_and_mike_mow_time = 1 / (1/bob_mow_time + 1/mike_mow_time)
result = bob_and_mike_mow_time
return result
|
A company makes and sells t-shirts. They sell t-shirts for $15 each and spend $10 on materials to make each shirt. Their monthly rent costs $500 and they have to pay each employee $2000 a month. If they sell 500 t-shirts in one month, what is their profit? | def solve() -> int:
num_tshirts_sold = 500
material_cost_per_shirt = 10
price_per_shirt = 15
rent_cost = 500
employee_cost = 2000
revenue = num_tshirts_sold*price_per_shirt
costs = material_cost_per_shirt*num_tshirts_sold + rent_cost + employee_cost
profit = revenue - costs
result = ... |
An ice cream shop has 10 flavors and 3 types of cones (sugar, waffle, and cake). How many different ice cream cones can be made? | def solve() -> int:
num_flavors = 10
num_cones = 3
combinations = num_flavors * num_cones
result = combinations
return result
|
Student: Amir went to the fruit store to buy some apples. He paid 20% of the apples’ cost in tax. If he paid 480 dollars for the apples, what was their cost before the tax? | def solve() -> int:
cost_after_tax = 480
tax_percentage = 20
tax_amount = cost_after_tax * tax_percentage / 100
cost_before_tax = cost_after_tax - tax_amount
result = cost_before_tax
return result
|
Carla wants to buy 8 cups of coffee for her and 7 of her friends. If each cup costs $2, how much does she need to pay in total? | def solve() -> int:
num_cups = 8
num_friends = 7
cost_per_cup = 2
total_amount = (num_cups + num_friends) * cost_per_cup
result = total_amount
return result
|
A baker is planning to make cupcakes for a fundraiser. She knows that she needs 0.05 pounds of flour for each cupcake she makes. She can get a second batch of ingredients that will only be half the amount of the first batch. If she wants to make 800 cupcakes in total, how much flour does she have to bring for her initi... | def solve() -> int:
total_cupcakes = 800
flour_per_cupcake = 0.05
initial_batch_flour = total_cupcakes * flour_per_cupcake * 2
result = initial_batch_flour
return result
|
Rachel has 5 hours to practice piano and dance. She practices piano for 1.5 hours and then dances for 30 minutes. If she can play 3 songs in 10 minutes, how many songs can she play before her time is up? | def solve() -> int:
piano_practice = 1.5
dance_practice = 0.5
total_practice_time = piano_practice + dance_practice
song_time = 10
total_songs = total_practice_time / song_time
result = total_songs
return result
|
Jack, Jill, and Mark share 1120 pieces of candy in the ratio 2:3:4. If Jack gives 25% of his candy to Jill, and Mark gives half of his candy to Jack, how many pieces of candy does Jack have in total? | def solve() -> int:
candy = 1120
ratio = [2,3,4]
total_parts = sum(ratio)
jack_parts = ratio[0]/total_parts
jill_parts = ratio[1]/total_parts
mark_parts = ratio[2]/total_parts
jack_candy = jack_parts * candy
jill_candy = jill_parts * candy
jack_candy_jill = jack_candy * 0.25
... |
John has 100 marbles. He lost 25% of them and then gave away 20% of what was left. How many marbles does he have now? | def solve() -> int:
starting = 100
lost_percent = 25
lost = starting * lost_percent/100
left_after_lost = starting - lost
given_away_percent = 20
given_away = left_after_lost * given_away_percent/100
left_now = left_after_lost - given_away
result = left_now
return result
|
If an airplane flys at 500 MPH for 5 hours, how long is its flight in miles? | def solve() -> int:
mph = 500
hours = 5
miles = mph * hours
result = miles
return result
|
Sara is aA farmer wants to donate 3 chickens per each family in two villages. Each village has 10 families. How many chickens would the farmer donate in all? | def solve() -> int:
village1_families = 10
village2_families = 10
chickens_per_family = 3
total_chickens = (village1_families + village2_families) * chickens_per_family
result = total_chickens
return result
|
Mary has 180 candies in her bag. She eats 15 percent of the candies, and then gives 25 percent of the remaining candies to her friend Tom. How many candies does Mary have left in her bag? | def solve() -> int:
total_candies = 180
candies_eaten = 0.15 * total_candies
candies_left = total_candies - candies_eaten
candies_to_tom = 0.25 * candies_left
result = candies_left - candies_to_tom
return result
|
Student: A toy store had a sale on puzzles. The original price of each puzzle was $10. During the sale, the store offered a 20% discount on the first puzzle, a 30% discount on the second puzzle, and a 40% discount on the third puzzle. A customer bought three puzzles of different types. How much did the customer pay for... | def solve() -> int:
original_price = 10
discount_1 = 0.2
discount_2 = 0.3
discount_3 = 0.4
price_1 = original_price * (1 - discount_1)
price_2 = original_price * (1 - discount_2)
price_3 = original_price * (1 - discount_3)
total_price = price_1 + price_2 + price_3
result = total_pric... |
Isabella starts with 500 dollars. Over the next year she gains 5% more every month. The following year she loses 50 dollars each month. Then she gains 10% more every 2 months for 6 months. How many dollars does Isabella have left? | def solve() -> int:
money = 500
for i in range(12):
money *= 1.05
for i in range(12):
money -= 50
for i in range(6):
if (i+1) % 2 == 0:
money *= 1.1
result = money
return result
|
A recipe for a cake calls for 2 cups of flour, 1/2 cup of sugar, and 1/4 cup of butter. If you want to make 4 cakes, how much of each ingredient will you need? | def solve() -> int:
num_cakes = 4
flour_per_cake = 2
sugar_per_cake = 0.5
butter_per_cake = 0.25
total_flour = num_cakes * flour_per_cake
total_sugar = num_cakes * sugar_per_cake
total_butter = num_cakes * butter_per_cake
result = (total_flour, total_sugar, total_butter)
r... |
June purchased 4 bottles of juice. Each bottle cost $4.5 and she had to pay 0.9% tax on everything. How much did she pay in total? | def solve() -> int:
tax_rate = 0.009
cost_of_1_bottle = 4.5
number_of_bottles = 4
tax = cost_of_1_bottle * number_of_bottles * tax_rate
total_cost = cost_of_1_bottle * number_of_bottles + tax
result = total_cost
return result
|
Ms. Gomez bought 72 pencils for her Grade 3 class and found out that 40% of them were red. How many pencils of each color did she buy if the rest of them were blue? | def solve() -> int:
red = 0.4 * 72
blue = 72 - red
result = (red, blue)
return result
|
Student: A store sells 25 shirts for $250. What is the cost of 1 shirt? | def solve() -> int:
num_shirts = 25
total_cost = 250
cost_per_shirt = total_cost / num_shirts
result = cost_per_shirt
return result
|
If there are 20 triathletes competing in an event and they have each consumed 8 energy bars, how energy bars have been consumed all together? | def solve() -> int:
num_triathletes = 20
num_energy_bars = 8
total_energy_bars = num_triathletes * num_energy_bars
result = total_energy_bars
return result
|
1. Joe and Sue go grocery shopping and end up buying 10 items in total. Joe buys 3 items at a cost of $3 each, and Sue buys 7 items at a cost of $4 each. How much do they spend in total? | def solve() -> int:
total = 0
for num_items in range (3):
total += 3
for num_items in range (7):
total += 4
result = total
return result
|
A bottle can hold 2 liters of water. If Jane drinks 500 mL of water, how much water is left in the bottle? | def solve() -> int:
bottle_capacity = 2
water_drunk = 0.5
water_left = bottle_capacity - water_drunk
result = water_left
return result
|
Student: A multi-pack of cereal bars weighs 24 ounces. If each individual bar weighs 1.5 ounces, how many bars are in the multi-pack? | def solve() -> int:
multi_pack_weight = 24
bar_weight = 1.5
num_bars = multi_pack_weight / bar_weight
result = num_bars
return result
|
Student: A circular garden has a radius of 5m. If it is surrounded by a path 3m wide, what is the area of the path? | def solve() -> int:
radius = 5
width = 3
area_garden = 3.14 * radius**2
area_path = 3.14 * (radius + width)**2 - area_garden
result = area_path
return result
|
Student: In a video game, Maria has 100 points. She gains 25 points and then loses 12 points. How many points does she have now? | def solve() -> int:
points = 100
points = points + 25
points = points - 12
result = points
return result
|
Frankie has 6 chickens and 5 ducks on his farm. He has 40 pounds of feed. Each chicken eats 1/4 pound of feed per day. Each duck eats 1/2 pound of feed per day. How many more pounds of feed does Frankie need to buy to feed all of his animals for 10 days. | def solve() -> int:
chickens = 6
ducks = 5
feed = 40
chicken_feed = 0.25
duck_feed = 0.5
total_feed = (chickens * chicken_feed) + (ducks * duck_feed)
days = feed / total_feed
extra_days = 10 - days
additional_feed = extra_days * total_feed
result = additi... |
Matthew gathered 54 apples from a tree. If he divided them evenly into boxes of 8 apples each, how many apples will have left? | def solve() -> int:
apples = 54
boxes = 8
applesLeft = apples % boxes
result = applesLeft
return result
|
It's Mike's turn to buy snacks for his soccer team. He goes to the supermarket and buys 2 boxes of granola bars for $7.50 each and 4 packs of juice boxes for $3.00 each. He also pays $1.75 for a reusable bag. How much does he spend in total? | def solve() -> int:
box_price = 7.50
box_quantity = 2
pack_price = 3.00
pack_quantity = 4
bag_price = 1.75
box_cost = box_price * box_quantity
pack_cost = pack_price * pack_quantity
total_cost = box_cost + pack_cost + bag_price
result = total_cost
r... |
A sports team won 24 games and lost 40. Find the ratio of wins to total games played. | def solve() -> int:
wins = 24
total_games = 24 + 40
ratio = wins / total_games
result = ratio
return result
|
arah is baking cookies. She uses 2/3 cups of sugar for each dozen cookies. If she wants to bake 4.5 dozen cookies, how many cups of sugar does she need? | def solve() -> int:
cookies = 4.5 * 12
cups_of_sugar = cookies * (2/3)
result = cups_of_sugar
return result
|
Jessica has five hamsters. Each one needs 1 tablespoon of pellets, twice a day. How many tablespoons of pellets does she need to feed her hamsters for 10 days? | def solve() -> int:
hamsters = 5
pellets_per_hamster_per_day = 1 * 2
days = 10
total_pellets = hamsters * pellets_per_hamster_per_day * days
result = total_pellets
return result
|
Ben wants to work up to climbing Mount Everest. He trains 7 days a week and starts with hiking small hills. He adds on 1000 feet of elevation each week and once he can climb a 10000 feet mountain, he will start training for the technical climbing required for Everest. How many months will it take him to reach his goal ... | def solve() -> int:
elevation = 0
weeks = 0
while elevation < 10000:
elevation += 1000
weeks += 1
months = weeks / 4
result = months
cards = 75
money = 0
money = (cards / 5) * 10
result = money
return result
|
A car traveled 180 miles in 3 hours. What is its average speed in miles per hour? | def solve() -> int:
distance = 180
time = 3
speed = distance / time
result = speed
return result
|
Two candy bars and three packs of bubble gum cost a total of $3.25. A candy bar and two packs of bubble gum cost $1.40. How much does a candy bar cost? | def solve() -> int:
c = 2 * (1.4 - 2 * 0.75) + 2 * 0.75
result = round(c, 2)
return result
|
A recipe for pancakes calls for 1 egg, 1 cup of flour, and 1/2 cup of milk. If you want to make 10 pancakes, how many eggs, cups of flour, and cups of milk do you need? | def solve() -> int:
pancakes = 10
eggs = pancakes
flour = pancakes
milk = pancakes / 2
result = (eggs, flour, milk)
return result
|
Sophie's cat food has 25% protein in it. Henry's cat needs 5 grams of protein per day. If he feeds his cat Sophie's cat food, how much cat food does he need to feed his cat in a week? | def solve() -> int:
protein_percentage = 25
protein_needed_per_day = 5
days_in_a_week = 7
protein_needed_per_week = protein_needed_per_day * days_in_a_week
cat_food_needed_per_week = protein_needed_per_week / (protein_percentage / 100)
result = cat_food_needed_per_week
return ... |
If a car travels at a speed of 60 mph, how many miles will the car travel in 3 hours? | def solve() -> int:
speed = 60
time = 3
distance = speed * time
result = f'{distance} miles'
result = distance
return result
|
Lilly earns 20 dollars for every hour she works. How much will she earn after working for 8 hours and 45 minutes? | def solve() -> int:
hourly_rate = 20
hours = 8.75
earnings = hourly_rate * hours
result = earnings
return result
|
A jar contains 11 blue marbles, 16 red marbles, 18 green marbles and 23 yellow marbles. What is the probability of randomly picking a yellow marble out of the jar? | def solve() -> int:
no_of_blue_marbles = 11
no_of_red_marbles = 16
no_of_green_marbles = 18
no_of_yellow_marbles = 23
total_marbles = no_of_blue_marbles + no_of_red_marbles + no_of_green_marbles + no_of_yellow_marbles
probability = no_of_yellow_marbles / total_marbles
result = probabil... |
Student: A school has a total of 400 students. If 60% are girls, how many boys are there in the school? | def solve() -> int:
total_students = 400
percentage_girls = 0.6
girls = total_students * percentage_girls
boys = total_students - girls
result = boys
return result
|
If the population triangle of a city is represented as Pop(t) = 5t + 90, where t is the number of years since 2015, what is the population in 2020? | def solve() -> int:
year = 2020
pop0 = 90
growth = 5
t = year - 2015
pop2020 = (t*growth) + pop0
result = pop2020
return result
|
A board is cut into 12 pieces. Each piece is 0.5 meters long. If the total length of the board is 7.2 meters, how much of the board is left over? | def solve() -> int:
pieces=12
piece_length=0.5
total_length=pieces*piece_length
length_used=total_length
length_remaining=total_length-length_used
result = length_remaining
return result
|
Student: A store sells shirts at $25 each and pants at $40 each. If Tina buys 2 shirts and 1 pair of pants, how much does she spend before tax if there is no discount? | def solve() -> int:
shirts = 2
pants = 1
shirt_price = 25
pants_price = 40
total_cost = shirts * shirt_price + pants * pants_price
result = total_cost
return result
|
Lily had $48 to spend at the store. She spent 1/4 of the money on candy and 1/3 of the money on toys. How much money did she have left after shopping? | def solve() -> int:
money = 48
candy = money * 1/4
toys = money * 1/3
leftover = money - candy - toys
result = leftover
return result
|
A company pays its employees on an hourly basis. If John has worked for 8 hours at a rate of $15.00 per hour, how much does he earn? | def solve() -> int:
hours_worked = 8
hourly_rate = 15
total_earnings = hours_worked * hourly_rate
result = total_earnings
return result
|
``` A company has 500 employees, and each employee uses an average of 2.4 sheets of paper per day. If a single pack of paper contains 500 sheets, calculate how many packs of paper the company will use in 31 days. | def solve() -> int:
num_employees = 500
sheets_per_employee_per_day = 2.4
num_sheets_in_31_days = num_employees*31*sheets_per_employee_per_day
pack_size = 500
num_packs = num_sheets_in_31_days/pack_size
result = num_packs
return result
|
Student: There are 96 seats in a movie theater. Three-fifths of them are taken and half of the taken seats are in the front row. How many seats are taken but not in the front row? | def solve() -> int:
total_seats = 96
taken_seats = 3/5 * total_seats
front_row_seats = taken_seats / 2
taken_not_front_row = taken_seats - front_row_seats
result = taken_not_front_row
return result
|
A farmer buys a total of 480 sheeps and nearly one third of them are white. How many white sheeps does the farmer have? | def solve() -> int:
total_number_of_sheeps = 480
percentage_of_white_sheeps = 0.3
number_of_white_sheeps = total_number_of_sheeps * percentage_of_white_sheeps
result = number_of_white_sheeps
return result
|
A supermarket sells 60 pounds of tomatoes every day. If a pound of tomatoes costs $1.2, how much money will the supermarket make in a week (7 days)? | def solve() -> int:
tomatoes_per_day = 60
cost_per_pound = 1.2
days_per_week = 7
total_tomatoes = tomatoes_per_day * days_per_week
total_cost = total_tomatoes * cost_per_pound
result = total_cost
return result
|
Sarah bought 540 candies to give out at a Halloween party. If she puts 4 candies in each treat bag, how many bags can she make and how many candies will be left over? | def solve() -> int:
candies = 540
candies_per_bag = 4
bags = candies // candies_per_bag
leftover_candies = candies % candies_per_bag
result = f'{bags} bags with {leftover_candies} candies left over'
return result
|
Kate and Leo are sharing a pizza. Kate eats 3 slices and Leo eats 4 slices. If the pizza has 12 slices, how many slices are left? | def solve() -> int:
kate_slices = 3
leo_slices = 4
pizza_slices = 12
left = pizza_slices - kate_slices - leo_slices
result = left
return result
|
Student: If each edition of a magazine costs $4 and there are 8 editions each month, how much will the subscriber have to spend in total for the entire year? | def solve() -> int:
editions_per_month = 8
cost_per_edition = 4
months_per_year = 12
total_cost = editions_per_month * cost_per_edition * months_per_year
result = total_cost
return result
|
A hotel offers a discount of 20% on the room rate if the room is booked for more than 5 days. If the regular room rate is $100 per day, how much will a guest pay for a 7-day stay in the hotel? | def solve() -> int:
regular_rate = 100
discount_rate = 0.2
discount_days = 5
stay_duration = 7
if stay_duration > discount_days:
total_rate = (regular_rate * stay_duration) * (1 - discount_rate)
else:
total_rate = regular_rate * stay_duration
result = total_rate
... |
Lisa works as a tutor and charges $25 per hour. She works for 12 hours in January, 15 hours in February, and 18 hours in March. How much money does she earn in the first quarter of the year? | def solve() -> int:
total_hours = 12 + 15 + 18
total_money = total_hours * 25
result = total_money
return result
|
Olivia bought 10 burgers and 6 hot dogs for $41 in total. If each hot dog costs $2.50, what is the cost of each burger? | def solve() -> int:
burgers = 10
hot_dogs = 6
total_cost = 41
hot_dog_cost = 2.50
hot_dogs_cost = hot_dogs * hot_dog_cost
burgers_cost = total_cost - hot_dogs_cost
cost_per_burger = burgers_cost / burgers
result = cost_per_burger
return result
|
A pizza place sells a large pizza for $15 and a small pizza for $10. If someone buys 2 large pizzas and 3 small pizzas, how much would they have to pay? | def solve() -> int:
price_of_large_pizza = 15
price_of_small_pizza = 10
number_of_large_pizzas = 2
number_of_small_pizzas = 3
total_cost = price_of_large_pizza * number_of_large_pizzas + price_of_small_pizza * number_of_small_pizzas
result = total_cost
return result
|
Emma is baking cookies but she ran out of vanilla extract. She collects 1.5 liters of water from the well. If the water is 10% vanilla extract, how many ml of vanilla extract will Emma get when all the water evaporates? | def solve() -> int:
water_volume = 1.5 * 1000
vanilla_extract_percentage = 10
vanilla_extract_volume = water_volume * (vanilla_extract_percentage / 100)
result = vanilla_extract_volume
return result
|
A zoo has 80 animals in total. If 20% of them are monkeys, how many non-monkey animals are there? | def solve() -> int:
total_animals = 80
monkeys_percentage = 20
monkeys = (monkeys_percentage / 100) * total_animals
non_monkeys = total_animals - monkeys
result = non_monkeys
return result
|
Student: A group of friends went to a restaurant and the total bill came out to be $65. If they want to split the bill evenly between the 4 friends, how much will each person have to pay? | def solve() -> int:
total_bill = 65
num_friends = 4
each_person_pay = total_bill / num_friends
result = each_person_pay
return result
|
A jar contains only red and green marbles. There are 5 more green marbles than red marbles. If there are a total of 70 marbles in the jar, how many red marbles are there? | def solve() -> int:
total_marbles = 70
green_marbles = (total_marbles + 5)/2
red_marbles = total_marbles - green_marbles
result = red_marbles
return result
|
Mr. Smith has 40 students in his class and he wants to treat them all with ice cream. He went to a nearby ice cream parlor and ordered 45 servings in total. Each serving costs $3. How much did he spend in total? | def solve() -> int:
num_students = 40
num_servings = 45
cost_per_serving = 3
total_cost = num_servings * cost_per_serving
result = total_cost
return result
|
Kayla has 3 $20, 4 $10, and 2 $5 bills. Leo has 10 $10 and 8 $5 bills. How many $5 bills do they have in total? | def solve() -> int:
kayla_5 = 2
leo_5 = 8
total_5 = kayla_5 + leo_5
result = total_5
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.