question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Possible questions and programs are: Alexa has 10 marbles in her bag. She gives 3 to Ben and 4 to Chris. Then she finds 2 more marbles on the ground and puts them in her bag. How many marbles does Alexa have now? | def solve() -> int:
marbles = 10
marbles = marbles - 3 - 4
marbles = marbles + 2
result = marbles
return result
|
A factory can produce 25 units of a product in an hour. How long will it take to produce 200 units? | def solve() -> int:
hours_needed = 200 / 25
result = hours_needed
return result
|
A rectangular box has a length of 5 cm, a width of 3 cm, and a height of 4 cm. What is the volume of the box? | def solve() -> int:
box_length = 5
box_width = 3
box_height = 4
box_volume = box_length * box_width * box_height
result = box_volume
return result
|
Student: A company has 1000 employees, and they want to give each employee a gift of $10. However, they also need to pay a 10% gift tax. How much money will the company need to spend in total? | def solve() -> int:
num_employees = 1000
gift_amount = 10
tax_rate = 0.1
total_amount = num_employees * (gift_amount + (gift_amount * tax_rate))
result = total_amount
return result
|
Jacob is saving up for a new computer that costs $1000. He can earn $12 for every hour he spends coaching younger kids in football and $3.50 for every hour he spends doing yard work for his neighbors. If he wants to buy the computer in 6 weeks, how many hours does he have to coach and do yard work each day? Cindy is se... | def solve() -> int:
computer_cost = 1000
weeks = 6
days_per_week = 7
total_hours_needed = computer_cost / (12 * weeks * days_per_week + 3.5 * weeks * days_per_week)
result = total_hours_needed
baseball_cards = 200
volleyballs = 15
basketballs = 0.6 * (baseball_cards - 8 * volle... |
Kim wants to go on vacation for 30 days and save $1500. How much money should Kim save per day in order to reach her goal? | def solve() -> int:
days = 30
goal = 1500
money_per_day = goal / days
result = money_per_day
return result
|
A company employs 500 people. If each person works on average 6 hours a day, how many man-hours will the company have in a year (take 250 workdays in a year)? | def solve() -> int:
total_employees = 500
work_hours_per_day = 6
work_days_per_year = 250
man_hours_per_year = total_employees*work_hours_per_day*work_days_per_year
result = man_hours_per_year
return result
|
Ethan assembled 18 bicycles. Each bicycle took him 2 hours to assemble. If he continues assembling bicycles for the next 10 hours, how many bicycles will he have assembled in total? | def solve() -> int:
bicycles_assembled = 18
time_per_bicycle = 2
additional_hours = 10
total_bicycles_assembled = bicycles_assembled + (additional_hours // time_per_bicycle)
result = total_bicycles_assembled
return result
|
A company needs to buy 120 chairs for a conference. If each chair costs $25, and the company is eligible for a 5% discount, what is the final cost of the chairs? | def solve() -> int:
num_chairs = 120
unit_price = 25
discount = 0.05
subtotal = num_chairs * unit_price
discount_amount = subtotal * discount
total_cost = subtotal - discount_amount
result = total_cost
return result
|
In a restaurant, there are 350 chairs. The chairs are divided equally into 5 rooms. How many more chairs can one room hold if there are already 25 seated people in that room? | def solve() -> int:
num_chairs = 350
num_rooms = 5
num_chairs_per_room = num_chairs / num_rooms
num_seated_people = 25
num_available_chairs = num_chairs_per_room - num_seated_people
result = num_available_chairs
return result
|
A car travels 150 kilometers in 2 hours and 30 minutes. What is the average speed of the car in km/hour? | def solve() -> int:
time = (2 * 60) + 30
average_speed = 150 / (time / 60)
result = average_speed
return result
|
Student: There are altogether 240 toy cars in a store, and the ratio of yellow cars to blue cars is 3:2. How many yellow cars are there in the store? | def solve() -> int:
total_cars = 240
yellow_ratio = 3
blue_ratio = 2
yellow_cars = total_cars * (yellow_ratio / (yellow_ratio + blue_ratio))
blue_cars = total_cars * (blue_ratio / (yellow_ratio + blue_ratio))
total_cars_calculated = yellow_cars + blue_cars
result = yellow_cars
return... |
acy is buying tiles for her bathroom. Her bathroom is shaped like a square and is 7 feet by 7 feet in dimensions. If each tile is 1.5 feet by 1.5 feet, how many tiles does she need? | def solve() -> int:
room_length = 7
room_width = 7
tile_length = 1.5
tile_width = 1.5
num_tiles = ((room_length/tile_length) * (room_width/tile_width))
result = num_tiles
return result
|
Lily has a coupon that gives her 20% off any purchase at a clothing store. She wants to buy a jacket that costs $60 and a pair of jeans that costs $40. She also has $15 in cash. How much more money does she need to buy the jacket and the jeans? | def solve() -> int:
total = 60 + 40
discount = 0.2 * total
final = total - discount
pay = final - 15
result = pay
return result
|
Student: In a conbination lock, there are 3 wheels each of which has 10 settings. If the locks have to be opened in the correct order, how many different combinations are possible? | def solve() -> int:
wheel1 = 10
wheel2 = 10
wheel3 = 10
result = wheel1 * wheel2 * wheel3
return result
|
In a class, there are 24 students. 1/4 of them are boys and the rest are girls. How many more girls than boys are there in the class? | def solve() -> int:
boys = 24 // 4
girls = 24 - boys
difference = girls - boys
result = difference
return result
|
What is the sum of the first 50 positive even numbers? | def solve() -> int:
sum_of_50_positive_even_numbers = sum(range(2, 51*2, 2))
result = sum_of_50_positive_even_numbers
return result
|
At Fancy Pet Store, cat food costs $7 per bag with a minimum purchase of 5 bags. If Emily spent $42 on cat food, how many bags over the minimum did she purchase? | def solve() -> int:
cost_per_bag = 7
minimum_purchase = 5
total_spent = 42
total_bags = total_spent // cost_per_bag
bags_over_minimum = total_bags - minimum_purchase
result = bags_over_minimum
return result
|
A recycling plant can process 600 pounds of plastic in a day. How many pounds of plastic can it process in a week? | def solve() -> int:
pounds_per_day = 600
days_per_week = 7
total_pounds = pounds_per_day * days_per_week
result = total_pounds
return result
|
A car travels 60 miles per hour. If it travels non-stop for 5 hours, how many miles will it have traveled? | def solve() -> int:
speed = 60
time = 5
distance = speed * time
result = distance
return result
|
Tom had 80 marbles. He sold some marbles and then bought 93 more. Now he has 154 marbles. How many marbles did Tom sell? | def solve() -> int:
marbles_start = 80
marbles_end = 154
marbles_bought = 93
marbles_sold = marbles_start - (marbles_end - marbles_bought)
result = marbles_sold
return result
|
Lily gets 20% commission on her sales. If she made a sale of $250, how much commission will she receive? | def solve() -> int:
sale_amount = 250
commission_rate = 0.2
commission = sale_amount*commission_rate
result = commission
return result
|
The perimeter of an isosceles triangle is 24 meters. If the length of the two equal sides is 8 meters less than the length of the third side, what is the length of each equal side? | def solve() -> int:
perimeter = 24
third_side_length = perimeter / 2
equal_sides_length = (third_side_length - 8) / 2
result = equal_sides_length
return result
|
A pizza restaurant has a 12-inch and 16-inch pizza. One day, the restaurant sold 10 small pizzas and 20 large pizzas. A small pizza costs $10 and a large pizza costs $16. What was the average price of one pizza sold that day? | def solve() -> int:
small_pizzas_sold = 10
large_pizzas_sold = 20
small_pizza_price = 10
large_pizza_price = 16
total_sales = (small_pizzas_sold * small_pizza_price) + (large_pizzas_sold * large_pizza_price)
total_pizzas_sold = small_pizzas_sold + large_pizzas_sold
avg_price = total_sales/to... |
``` Sarah has 500 dollars. She spends 250 dollars on shopping and then earns 350 dollars from her job. How much money does Sarah have now? | def solve() -> int:
money = 500
money -= 250
money += 350
result = money
return result
|
A school has 35 students, and each student has 5 pencils. If the school buys an additional 200 pencils, how many pencils will they have in total? | def solve() -> int:
num_students = 35
num_pencils_per_student = 5
additional_pencils = 200
total_pencils = (num_students * num_pencils_per_student) + additional_pencils
result = total_pencils
return result
|
works 40 hours a week and earns $1500 bi-weekly. On average, Sue's taxes are taken out at a rate of 30%. How much money does Sue take home every month? | def solve() -> int:
bi_weekly = 1500
tax_rate = 0.3
hours_weekly = 40
hourly_post_tax = bi_weekly/(hours_weekly*2)*(1-tax_rate)
monthly_post_tax = hourly_post_tax*hours_weekly*4
result = monthly_post_tax
return result
|
Ethan is two-fifths the age of his uncle, who is 12 years older than Ethan's aunt. If Ethan's uncle is 48 years old, what is the age difference between Ethan and his aunt? | def solve() -> int:
uncle_age = 48
aunt_age = (uncle_age - 12)
ethan_age = (2/5) * uncle_age
age_difference = ethan_age - aunt_age
result = age_difference
return result
|
Student: Jessica and her friend, Lisa, went hiking for 8 hours at an average speed of 3 miles an hour. At noon, they had lunch for 30 minutes before continuing their journey for another 6 hours at an average speed of 4 miles an hour. How far did Jessica and Lisa hike in total, in miles? | def solve() -> int:
h1 = 8
h2 = 6
s1 = 3
s2 = 4
d1 = s1 * h1
d2 = s2 * h2
d = d1 + d2
result = d
return result
|
John takes a 5-minute break every hour during work. If he works 8 hours a day for 20 days, how many hours did he take breaks? | def solve() -> int:
hours_per_day = 8
days = 20
break_duration = 5
total_breaks = hours_per_day * days * (60 / break_duration)
result = total_breaks
return result
|
If Sophia has 45 marbles and she gives away 60% of them, how many marbles does she have left? | def solve() -> int:
marbles = 45
given_away = marbles * 0.6
remaining = marbles - given_away
result = remaining
return result
|
The sum of John and Jack's ages now is 100. John is 5 years older than Jack. How old is Jack? | def solve() -> int:
jack_age = 0
john_age = 0
sum = 100
jack_age = (sum - john_age)/2
john_age = jack_age + 5
result = jack_age
return result
|
Leo is painting a mural on a wall. The wall is 8 meters high and 12 meters wide. He uses a paint roller that can cover 0.5 square meters with one stroke. He needs to apply two coats of paint to the wall. How many strokes does he need to paint the whole wall with two coats? | def solve() -> int:
wall_area = 8 * 12
one_coat_strokes = wall_area / 0.5
two_coat_strokes = one_coat_strokes * 2
result = two_coat_strokes
return result
|
A charity collected a total of $72,104 from 237 donors this year. What was the average donation made by each donor? | def solve() -> int:
total_donation = 72104
number_donors = 237
average_donation = total_donation / number_donors
result = average_donation
return result
|
Sophia decides to rent a bike. She drives 10 miles on Monday, Wednesday, and Friday and 20 miles on Tuesday, Thursday, and Saturday. Sunday is a rest day. She has to pay $. 05 per mile she drives. She also has to pay a weekly fee of $50. How much does she have to pay in a year? | def solve() -> int:
monday_miles = 10
wednesday_miles = 10
friday_miles = 10
tuesday_miles = 20
thursday_miles = 20
saturday_miles = 20
rest_day_miles = 0
weekly_fee = 50
miles_per_week = monday_miles + wednesday_miles + friday_miles + tuesday_miles + thursday_miles + saturday_miles ... |
Alice has a rectangular garden that is 8 meters long and 6 meters wide. She wants to plant roses along the perimeter of the garden, leaving 1 meter of space between each rose. How many roses does she need to buy? | def solve() -> int:
perimeter = 2 * (8 + 6)
spaces = perimeter - 1
roses = spaces + 1
result = roses
return result
|
A company has 500 employees. If 45% of them are women, how many men work for the company? | def solve() -> int:
total_employees = 500
women_percent = 45
women = (women_percent / 100) * total_employees
men = total_employees - women
result = men
return result
|
Laura wants to buy a new dress that costs $80. She is going to make and sell headbands to raise the money. Each headband costs $3 to make and she sells them for $5 each. If she makes 30 headbands and after buying the dress still has $10, how much did the headband supplies originally cost? | def solve() -> int:
dress_cost = 80
headband_cost = 3
headband_price = 5
num_headbands = 30
remaining_money = 10
total_headband_cost = headband_cost * num_headbands
total_headband_price = headband_price * num_headbands
total_money_spent = total_headband_cost + dress_cost
origina... |
8. Jane and Joe both work for a hospital. 5 years ago, Jane had four times as much experience as Joe. Now, Joe has five times as much experience as Jane. How many years of experience does Jane have now? | def solve() -> int:
jane_yrs = 5
joe_yrs = 0
joe_yrs_after_5yrs = jane_yrs * 4
jane_yrs_after_5yrs = joe_yrs_after_5yrs * (1/5)
result = jane_yrs + jane_yrs_after_5yrs
return result
|
Lisa has $80. Jack has $45. If Lisa gives Jack one-fourth of what she has, Jack will have more than Lisa. But Jack spends $15. How much more money does Lisa have than Jack now? | def solve() -> int:
lisa_money = 80
jack_money = 45
lisa_gives = lisa_money / 4
jack_money += lisa_gives
lisa_money -= lisa_gives
jack_money -= 15
difference = lisa_money - jack_money
result = difference
return result
|
A recipe calls for 3 cups of flour for every 2 cups of sugar. If the recipe calls for 10 cups of sugar, how many cups of flour does it require? | def solve() -> int:
flour_per_sugar = 3/2
sugar_needed = 10
flour_needed = flour_per_sugar * sugar_needed
result = flour_needed
return result
|
A rectangular field is 12 meters by 8 meters. How many square meters is the field? | def solve() -> int:
length = 12
width = 8
area = length * width
result = area
return result
|
Student: A recipe calls for 3 cups of flour for every 2 cups of sugar. If you want to make half of the recipe, how many cups of flour do you need? | def solve() -> int:
flour = 3
sugar = 2
ratio = flour / sugar
half_sugar = 0.5 * sugar
half_flour = ratio * half_sugar
result = half_flour
return result
|
A car can travel 450 miles on a full tank of gas. If a trip is 300 miles long, how much gas will be needed for the trip? | def solve() -> int:
full_tank_distance = 450
trip_distance = 300
gas_needed = (trip_distance / full_tank_distance) * 1.0
result = gas_needed
return result
|
Student: How many people attended the party if 40% are women? | def solve() -> int:
percentage_women = 40
total_people = percentage_women / 100 * 100
result = total_people
return result
|
Student: Eric has 9 cards. Fiona gives Eric one fourth the number she has. Eric then gives Fiona back one half of his new total plus 2. How many cards does Eric have now? | def solve() -> int:
eric_cards = 9
fiona_cards = eric_cards / 4
eric_cards += fiona_cards
eric_cards -= (eric_cards / 2 + 2)
result = eric_cards
return result
|
Student: Lila is baking cookies for her friends. She can make 3 batches of 12 cookies each in an hour. Her oven can fit 2 batches at a time and it takes 15 minutes to bake one batch. After every 2 batches, she takes a 5-minute break to decorate the cookies. How many cookies can she make in 3 hours? | def solve() -> int:
batch_size = 12
batches_per_hour = 3
oven_capacity = 2
baking_time = 15
break_time = 5
hours = 3
total_batches = batches_per_hour * hours
total_cookies = batch_size * total_batches
total_baking_time = baking_time * total_batches
total_break_time = break_time *... |
Possible questions and programs: To make bread, the bakery needs flour and yeast. Flour is bought at $0.8 per kilogram and yeast at $1.2 per packet. To make one loaf of bread, the bakery needs 0.5 kilograms of flour and one packet of yeast. How much does it cost the bakery to produce six loaves of bread? | def solve() -> int:
flour_cost = 0.8
yeast_cost = 1.2
flour_amount = 0.5
yeast_amount = 1
flour_cost_one_loaf = flour_cost * flour_amount
yeast_cost_one_loaf = yeast_cost * yeast_amount
cost_one_loaf = flour_cost_one_loaf + yeast_cost_one_loaf
cost_six_loaves = cost_o... |
A hardware store has a 5% discount on all tools. If Mark paid $50 for a saw, how much did Mark save? | def solve() -> int:
price_of_saw = 50
discount_percentage = 5
discount_amount = (price_of_saw * discount_percentage) / 100
saved_amount = discount_amount
result = saved_amount
return result
|
Ben plants sunflower seeds in his garden. Each seed packet costs $1 and contains 10 seeds. He buys 4 packets and plants 8 seeds per packet. He expects 80% of the seeds to grow into sunflowers. How many sunflowers does he expect to have in his garden? | def solve() -> int:
seeds_planted = 4 * 8
sunflowers_expected = 0.8 * seeds_planted
result = sunflowers_expected
return result
|
``` A drink costs $2 and a piece of cake costs $3.50 each. If you want to buy 2 drinks and 3 pieces of cake, how much will it cost in total? | def solve() -> int:
drink_price = 2
cake_price = 3.5
num_drinks = 2
num_cakes = 3
total_price = (drink_price * num_drinks) + (cake_price * num_cakes)
result = total_price
return result
|
Student: Amy drove for 10 hours at an average speed of 72 mi/h. If there are four stops of 25 minutes,how many miles did she travel? | def solve() -> int:
total_time = 10 * 60 + 4 * 25
distance = total_time * 72 / 60
result = distance
return result
|
Carter and his family are having a hot dog eating contest. There are three types of hot dogs: beef, chicken, and vegetarian. The beef hot dog weighs 2 ounces each. The chicken hot dog weighs 3 ounces each. The vegetarian hot dog weighs 4 ounces each. Carter eats 6 beef hot dogs, 4 chicken hot dogs,A bakery was planning... | def solve() -> int:
beef_weight = 2
chicken_weight = 3
vegetarian_weight = 4
carter_beef = 6
carter_chicken = 4
total_weight = (beef_weight * carter_beef) + (chicken_weight * carter_chicken)
original_production = 300
decreased_production = original_production * 0.2
actua... |
A baker makes 36 muffins in a batch; a pastry chef makes 48 croissants in a batch; a cook makes 24 pancakes in a batch; a caterer makes 60 sandwiches in a batch. If they all make the same number of batches in a day, how many pieces of food do they make in total in a day? | def solve() -> int:
batches = 36
muffins = batches * 36
croissants = batches * 48
pancakes = batches * 24
sandwiches = batches * 60
total_food = muffins + croissants + pancakes + sandwiches
result = total_food
return result
|
A rectangular bathroom has dimensions 9 feet by 12 feet. How many tiles of area 0.5 square feet are needed to cover the bathroom floor? | def solve() -> int:
length = 9
width = 12
tile_area = 0.5
floor_area = length * width
number_of_tiles = floor_area / tile_area
result = number_of_tiles
return result
|
Bob has some coins in his piggy bank. He has 7 quarters, 10 dimes, and 6 nickels. How much money does he have in total? | def solve() -> int:
quarters = 7
dimes = 10
nickels = 6
total = (quarters*25) + (dimes*10) + (nickels*5)
result = total
return result
|
A car traveled 200 miles in 4 hours. How far can it travel in 6 hours? | def solve() -> int:
distance1 = 200
time1 = 4
time2 = 6
velocity = distance1 / time1
distance2 = velocity * time2
result = distance2
return result
|
10. Oscar bought a new game for his computer. If the game cost $40 but was discounted 30%, how much did he originally need to pay? | def solve() -> int:
price = 40
discount = 0.3
original_price = price/(1-discount)
result = original_price
return result
|
Sarah had $100. She donated $15 to charity and then earned an additional $45 from her part-time job. What is the total amount of money that Sarah has now? | def solve() -> int:
money = 100
money -= 15
money += 45
result = money
return result
|
A family goes out to eat at a restaurant and the bill comes to $125. If they want to leave a 20% tip, how much should they tip? | def solve() -> int:
bill_amount = 125
tip_percent = 20
tip_amount = bill_amount * (tip_percent/100)
result = tip_amount
return result
|
There are 15 apples on the table, and 5 more than a quarter of that number in the basket. There are 6 less than double the number of apples in the basket on the floor. How many apples are on the floor? | def solve() -> int:
apples_in_basket = 15 // 4 + 5
apples_on_floor = apples_in_basket * 2 - 6
result = apples_on_floor
return result
|
What is the total number of flowers the Greene Nursery has if an additional 1564 roses of any color are added? | def solve() -> int:
red_roses = 1491
yellow_carnations = 3025
white_roses = 1768
new_total_flowers = red_roses + yellow_carnations + white_roses + 1564
result = new_total_flowers
return result
|
Joe runs 3 miles a day every day for one year. How many miles does he run in total? | def solve() -> int:
miles_per_day = 3
days_in_year = 365
total_miles = miles_per_day * days_in_year
result = total_miles
return result
|
At a pet adoption center, there are 16 dogs and 3 times as many cats. If there are 67 animals total, how many cats are there? | def solve() -> int:
dogs = 16
cats = 3 * dogs
total_animals = dogs + cats
if total_animals == 67:
result = cats
else:
result = "No solution"
return result
|
If the perimeter is 40 cm and the width is 7 cm, what is the length of the rectangle? | def solve() -> int:
width = 7
perimeter = 40
length = perimeter - (2*width)
result = length
return result
|
Maria runs a snack shop. To make 15 bags of trail mix, she spends $25 on ingredients and 5 cents on a bag for each bag of trail mix. Maria sells each bag for $5. How much profit does Maria make on each bag of trail mix? | def solve() -> int:
num_bags = 15
cost_ingredients = 25
cost_bag = 0.05
price_bag = 5
total_cost = cost_ingredients + (num_bags * cost_bag)
total_revenue = num_bags * price_bag
profit = total_revenue - total_cost
result = profit/num_bags
return result
|
Mr. Lin divides the class into 3/4 of the boys and 4/5 of the girls. What fraction of the whole class is the girls? | def solve() -> int:
totalClass = 100
boys = totalClass * (3/4)
girls = totalClass * (4/5)
result = girls/totalClass
return result
|
Jacob reads 50 pages of a book every day. How many pages will Jacob have read in 4 weeks if in the first day he only read 30 pages? | def solve() -> int:
pages_per_day = 50
first_day_pages = 30
days_in_a_week = 7
weeks = 4
total_pages = (pages_per_day * (days_in_a_week * weeks)) + first_day_pages
result = total_pages
return result
|
Student: Mike is 21 years old and his cousin, Nora is 15 years old. In how many years will Mike be as old as Nora plus the sum of their current ages? | def solve() -> int:
mike_age = 21
nora_age = 15
difference = mike_age - nora_age
years = difference + nora_age
result = years
return result
|
Anna sells 12 bracelets for 5 dollars each. She spends 2 dollars to make each bracelet. How much profit does she make in total? | def solve() -> int:
bracelets = 12
price = 5
cost = 2
revenue = bracelets * price
total_cost = bracelets * cost
profit = revenue - total_cost
result = profit
return result
|
Student: A woman can complete a job in 10 days. Another woman can complete the same job in 15 days. How long will it take if they work together to complete the job? | def solve() -> int:
x = 1 / 10
y = 1 / 15
z = x + y
t = 1 / z
result = t
return result
|
A car repair shop charges $100 for a service. If a customer buys the service for two cars, the shop offers a discount of 20% on the second car service. A customer wants to buy the service for 4 cars. How much will they have to pay, including tax at a rate of 7%? | def solve() -> int:
price_per_service = 100
num_services = 4
discount_rate = 0.2
tax_rate = 0.07
subtotal = price_per_service * num_services
if num_services > 1:
subtotal -= price_per_service * (num_services - 1) * discount_rate
tax = subtotal * tax_rate
total = subtotal + tax
... |
A bus travels at a speed of 60 kilometers per hour. How long will it take to travel 150 kilometers? | def solve() -> int:
Speed = 60
Distance = 150
Time = Distance/Speed
result = Time
return result
|
Cassie needs to buy 15 books for her project, each book costs 12 dollars and she has 168 dollars in her pocket. How much money will she have left in her pocket after buying all the books? | def solve() -> int:
number_of_books = 15
cost_per_book = 12
money = 168
total_cost = number_of_books * cost_per_book
money_left = money - total_cost
result = money_left
return result
|
A recipe calls for 3/4 of a cup of milk for every 1/2 cup of sugar. If you use 2 cups of milk, how much sugar do you need? | def solve() -> int:
milk = 2
result = round((milk/(3/4))*(1/2),2)
return result
|
A parking garage charges three dollars per hour for any car parked in its premises. On Monday, Sarah parked her car in the garage for four hours, while on Wednesday she parked for six hours. If Sarah then leaves the garage on Thursday morning, how much must she pay for parking in the garage on Monday and Wednesday? | def solve() -> int:
hourly_rate = 3
monday_hours = 4
wednesday_hours = 6
monday_cost = hourly_rate * monday_hours
wednesday_cost = hourly_rate * wednesday_hours
total_cost = monday_cost + wednesday_cost
result = total_cost
return result
|
John has 50 coins. He wants to divide it into 5 piles equally and wants to know how many coins will be in each pile. | def solve() -> int:
coins = 50
piles = 5
each_pile = coins // piles
result = each_pile
return result
|
A park ranger is taking inventory of the number of animals in the park. They have counted 94 gray squirrels and 172 red squirrels. If the ranger knows that the park has a total of 340 squirrels, how many more animals need to be counted in order to complete their census? | def solve() -> int:
gray_squirrels = 94
red_squirrels = 172
total_squirrels = 340
total_animals_remaining = total_squirrels - (gray_squirrels + red_squirrels)
result = total_animals_remaining
return result
|
John is a delivery boy who is paid based on the number of packages he delivers. For every small package he delivers, he gets paid $1.25. For every large package he delivers, he gets paid $2.50. This week, he delivered 120 small packages and 80 large packages. His weekly pay was $380. What is the total number of package... | def solve() -> int:
small_package_price = 1.25
large_package_price = 2.50
small_packages = 120
large_packages = 80
total_salary = 380
result = ((total_salary - (large_package_price * large_packages)) / small_package_price) + small_packages
return result
|
If Bob has 3 times the amount of money that Carol has, and Carol has $60, how much money does Bob have? | def solve() -> int:
carol_money = 60
bob_money = 3 * carol_money
result = bob_money
return result
|
In a bag, there are 6 red marbles, 4 blue marbles, and 2 green marbles. If you randomly select one marble from the bag, what is the probability that it is blue? | def solve() -> int:
num_blue = 4
total_marbles = 12
probability = num_blue/total_marbles
result = probability
return result
|
During a conference, 50 delegates and 20 speakers are seated, but 5 delegates are standing. How many people attended the conference? | def solve() -> int:
delegates = 50
speakers = 20
standing_delegates = 5
total_attendees = delegates + speakers + standing_delegates
result = total_attendees
return result
|
Margaret has £290 that she wants to divide equally between 3 people. How much money will each person receive? | def solve() -> int:
total_money = 290
number_of_people = 3
share = total_money/number_of_people
result = share
return result
|
Student: 3. Celina has 13 cartons of milk. Three fourths of them are 2% milk. If Celina wants to split the 2% milk cartons into 6 equal piles, how many cartons will be in each pile? | def solve() -> int:
cartons = 13
percentage = 0.75
piles = 6
two_percent_cartons = cartons * percentage
cartons_in_each_pile = two_percent_cartons / piles
result = cartons_in_each_pile
return result
|
Student: Mark bakes 3 batches of cupcakes and 4 cakes. Every batch of cupcakes has 15 cupcakes and every cake has 8 slices. How many pieces of dessert were baked by Mark altogether? | def solve() -> int:
cupcakes_per_batch = 15
num_cupcake_batches = 3
num_cakes = 4
slices_per_cake = 8
total_cupcakes = cupcakes_per_batch * num_cupcake_batches
total_cake_slices = num_cakes * slices_per_cake
total_desserts = total_cupcakes + total_cake_slices
result = total_desserts
... |
In a swimming competition, there are 6 swimmers. The first three finish the race in 10 minutes, while the remaining swimmers finish the race in 5 minutes. How long did it take all the swimmers to finish the race? | def solve() -> int:
swimmers_1 = 3
time_1 = 10
swimmers_2 = 6 - swimmers_1
time_2 = 5
total_time = (swimmers_1 * time_1) + (swimmers_2 * time_2)
result = total_time
return result
|
Grace wants to spend 6 hours at an amusement park. The wait for the roller coaster is 25 minutes, the wait for the spinning ride is 15 minutes, and the wait for the log flume is 30 minutes. If Grace rides the roller coaster 7 times and the spinning ride 4 times, how many times can she ride the log flume? | def solve() -> int:
wait_roller_coaster = 25
wait_spinning_ride = 15
wait_log_flume = 30
total_time = 6 * 60
total_time_spent_roller_coaster = wait_roller_coaster * 7
total_time_spent_spinning_ride = wait_spinning_ride * 4
remaining_time = total_time - total_time_spent_rolle... |
If a car travels at a speed of 60 km/h, how many kilometers can it travel in 3 hours? | def solve() -> int:
speed = 60
time = 3
distance = speed * time
result = distance
return result
|
The length of a rectangle is three times its width. If the perimeter of the rectangle is 40 cm, what is the length of the rectangle? | def solve() -> int:
perimeter = 40
width = perimeter / 8
length = width * 3
result = length
return result
|
Tony takes a 15% pay cut, and his pay before the cut was $52.25. How much does Tony make after the pay cut? | def solve() -> int:
def calc_pay_cut(pay, cut):
new_pay = pay - (pay * cut)
return new_pay
pay = 52.25
cut = 0.15
result = calc_pay_cut(pay, cut)
return result
|
Jack has 8 flowers and he wants to share them equally among his 3 sons. How many flowers each son should get? | def solve() -> int:
total_flowers = 8
each_son = total_flowers / 3
result = each_son
return result
|
Judy wants to fill a pool with water that is 4 meters long, 2 meters wide and 1 meter deep. If 1 liter of water is equivalent to 0.001 cubic meters, how many liters of water does she need? | def solve() -> int:
length = 4
width = 2
height = 1
volume = length * width * height
liters_needed = volume * 0.001
result = liters_needed
return result
|
Seattle is 14 times the size of Olympia. Olympia has 30,000 people. If 200,000 people move out of Seattle, and half of Seattle's population is married, how many people living in Seattle are married? | def solve() -> int:
olympia_population = 30000
seattle_population = 14 * olympia_population
seattle_population -= 200000
married_population = seattle_population / 2
result = married_population
return result
|
A college dormitory accommodates 120 students. Each room can house 4 students. How many rooms does the dormitory have? | def solve() -> int:
num_students = 120
students_per_room = 4
num_rooms = num_students // students_per_room
result = num_rooms
return result
|
``` A movie theater has 10 rows with 15 seats in each row. If a ticket costs $12, what is the maximum amount of money the theater can make for one sold-out showing? | def solve() -> int:
rows = 10
seats_per_row = 15
ticket_cost = 12
total_seats = rows * seats_per_row
total_sales = total_seats * ticket_cost
result = total_sales
return result
|
During a six-day period, David sold 40 books on the first day, 45 books on the second day, 55 books on the third day, 65 books on the fourth day, 50 books on the fifth day, and 65 books on the sixth day. What was David's average number of books sold per day? | def solve() -> int:
sales_sum = 40 + 45 + 55 + 65 + 50 + 65
days = 6
result = sales_sum / days
return result
|
Jamie wants to purchase a new car stereo system that costs $250.00. He only has $200.00 in his budget but he has a coupon for 20% off the original price. If tax in his state is 8%, can he afford the stereo system? | def solve() -> int:
original_price = 250.00
discount = original_price * 0.20
discounted_price = original_price - discount
tax = discounted_price * 0.08
total_cost = discounted_price + tax
budget = 200.00
if total_cost <= budget:
result = "Jamie can afford the stereo system."
else... |
Student: Amy wants to bake cookies. The recipe calls for 2 cups of flour for every 1 cup of sugar. She has 4 cups of sugar, how much flour does she need? | def solve() -> int:
sugar = 4
flour = 0
flour = sugar * 2
result = flour
return result
|
A rectangle has a length of 12 cm and a width of 8 cm. What is the perimeter of the rectangle? | def solve() -> int:
length = 12
width = 8
perimeter = 2 * (length + width)
result = perimeter
return result
|
If a rectangle has a length of 8 inches and a width of 6 inches, what is its perimeter? | def solve() -> int:
length = 8
width = 6
perimeter = 2 * (length + width)
result = perimeter
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.