question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Keegan has a break for 20 minutes between two classes. How much time does he spend in one of his classes on average, considering the break time? | def solve() -> int:
time_in_school = 7.5
num_of_classes = 7
history_chem = 1.5
break_time = 20
total_break_time = (num_of_classes-1)*break_time/60
average_time_in_class = (time_in_school - history_chem - total_break_time)/num_of_classes
average_time_in_class_mins = average_time_in_class*60
... |
Thomas wants to build birdhouses for his garden. It takes three pieces of wood to make one birdhouse. If he wants to make 12 birdhouses, how many pieces of wood does he need? | def solve() -> int:
birdhouses = 12
pieces_of_wood_per_birdhouse = 3
total_pieces_of_wood = birdhouses * pieces_of_wood_per_birdhouse
result = total_pieces_of_wood
return result
|
George has a rectangular garden with dimensions 10 feet by 15 feet. How many square feet is his garden? | def solve() -> int:
length = 10
width = 15
area = length * width
result = area
return result
|
There are 600 pencils and 25 students in a classroom. Each student gets the same number of pencils and the remainder are kept by the teacher. How many pencils will each student get? | def solve() -> int:
num_pencils = 600
num_students = 25
pencils_per_student = num_pencils // num_students
result = pencils_per_student
return result
|
Student: Tyson is having a barbecue party and wishes to buy apples for it. He bought a total of 45 apples in the market. In the first week, he bought 1/4 of the apples. In the second week, he bought twice the number of apples he bought in the first week. In the third week, he bought the same number of apples as in the ... | def solve() -> int:
total_apples = 45
first_week_apples = total_apples // 4
second_week_apples = first_week_apples * 2
third_week_apples = first_week_apples + second_week_apples
result = third_week_apples
return result
|
5. There are 35 marbles in a jar, if I take away 8 marbles, how many marbles are left in the jar? | def solve() -> int:
jar = 35
marbles = 8
marbles_left = 0
while marbles > 0:
jar -= 1
marbles_left += 1
marbles -= 1
result = marbles_left
return result
|
A class of 30 students took a field trip to a museum. The cost of admission was $10 per student and $15 per teacher/chaperone. If there were 3 teachers/chaperones, how much did the museum make from the trip? | def solve() -> int:
total_student_cost = 30 * 10
total_teacher_cost = 3 * 15
total_money = total_student_cost + total_teacher_cost
result = total_money
return result
|
A boat travel at a speed of 25 km/h in still water. If it can travel 100 km downstream in the same time as it takes to travel 60 km upstream, find the speed of the river. | def solve() -> int:
speed_still_water = 25
speed_downstream = 100/(2*speed_still_water)
speed_upstream = 60/(2*speed_still_water)
speed_river = (speed_downstream - speed_upstream)/2
result = speed_river
return result
|
In a factory, 15% of the employees are managers. The rest are workers. If a manager earns $200 per day, how much do all the workers earn in total if there are 50 managers and 200 workers in the factory? | def solve() -> int:
managers_percentage = 15
total_employees = 250
managers = (managers_percentage / 100) * total_employees
workers = total_employees - managers
worker_earning_per_day = 200
total_worker_earning = workers * worker_earning_per_day
result = total_worker_earning
return ... |
Alex has 6 one-dollar bills, 3 five-dollar bills, and 1 twenty-dollar bill. He goes to buy grapes, which cost $4 a pound. He buys what he wants and has $3 in change. He plans to eat the grapes all in one week. How many pounds does he eat on average per day? | def solve() -> int:
ones = 6
fives = 3
twenties = 1
grape_cost = 4
change = 3
total_money = ones + (fives * 5) + (twenties * 20)
grape_money = total_money - change
grape_amount = grape_money // grape_cost
days_in_week = 7
grape_per_day = grape_amount... |
helly had four times as many dolls as Zara. Zara had 20 dolls. How many dolls did Shelly have? | def solve() -> int:
zara_dolls = 20
shelly_dolls = zara_dolls * 4
result = shelly_dolls
return result
|
George was able to drive 320 miles in 4.5 hours. How fast was he driving in mph? | def solve() -> int:
distance = 320
time = 4.5
driving_speed = distance / time
result = driving_speed
return result
|
If the perimeter of a square is 40 centimeters, what is the length of one side? | def solve() -> int:
perimeter = 40
side_length = perimeter/4
result = side_length
return result
|
A rectangular garden with a width of 12ft has an area of 120ft². What is the length of the garden? | def solve() -> int:
garden_width = 12
garden_area = 120
garden_length = garden_area / garden_width
result = garden_length
return result
|
Liam bought a pair of headphones for $50. His friend, Harry, liked the headphones and wanted to buy the same one, but it was sold out in the store. Harry decided to order the headphones online for a price that was 1.75 times theBob needs to pay his monthly bills. He already paid $75 towards his $100 electricity bill, $... | def solve() -> int:
headphones_price = 50
online_price = headphones_price * 1.75
total_bill = 100 + 30 + 60
paid_bill = 75 + 20 + (3/4)*60 + 10
remaining_bill = total_bill - paid_bill
result = remaining_bill
return result
|
In the middle of the Sahara desert in July, the temperature was 104 degrees. If the temperature in Cairo on this day was 12 degrees hotter than in the desert, and 28 degrees cooler than in Dubai, what was the average temperature for the three cities? | def solve() -> int:
desert_temp = 104
cairo_temp = desert_temp + 12
dubai_temp = cairo_temp + 28
average_temp = (desert_temp + cairo_temp + dubai_temp) / 3
result = average_temp
return result
|
Student: At a fair, there are 40 ice-cream stands, and each stand serves 4 types of ice-cream. How many types of ice-cream are served in total? | def solve() -> int:
stands = 40
types = 4
total_types = stands * types
result = total_types
return result
|
A school limits the number of students in each classroom. Each classroom can have at most 30 students and must have at least 10 more students than the smallest permissible size. What is the maximum number of students allowed in a classroom? | def solve() -> int:
min_permissible_size = 10
max_students = 30
max_allowed_students = min_permissible_size + max_students
result = max_allowed_students
return result
|
John has three sacks of apples. The first sack has 15 apples, the second sack has 20 apples and the third sack has 25 apples. He gives away 15 apples and then adds 30 more apples to his sacks. How many apples does he have now? | def solve() -> int:
apples = 15+20+25
apples -= 15
apples += 30
apples == 55
result = apples
return result
|
If a train travels 252 kilometers in 3 hours and 30 minutes, what is its average speed in kilometers per hour? | def solve() -> int:
distance = 252
time_in_hours = 3.5
speed = distance / time_in_hours
result = speed
return result
|
A circle has an area of 36 square inches. Find the radius of the circle in feet. Assume 1 inch equals 0.0833 feet. | def solve() -> int:
area_inches = 36
pi = 3.14159
radius_inches = ((area_inches/pi)**0.5)
inches_to_feet = 0.0833
radius_feet = radius_inches * inches_to_feet
result = radius_feet
return result
|
Evan is planning a multi-day hike and knows that he needs to pack 0.6 pounds of supplies for every mile he hikes. If he plans to resupply once at 20% the size of his initial pack, and hike for 8 hours a day for 7 days at a rate of 2.5 mph, how much does he need to bring with his first pack? | def solve() -> int:
miles_per_hour = 2.5
hours_per_day = 8
days = 7
initial_pack_ratio = 0.6
resupply_ratio = 0.2
total_miles = miles_per_hour * hours_per_day * days
initial_pack = total_miles * initial_pack_ratio
resupply_pack = initial_pack * resupply_ratio
final_pack = i... |
ome possible questions are: Max wants to build a fence around his rectangular garden. The length of the garden is 12 meters and the width is 8 meters. He needs to leave a gap of 1 meter for the gate. How many meters of fencing does he need? | def solve() -> int:
perimeter = 2 * (12 + 8)
fencing = perimeter - 1
result = fencing
return result
|
The perimeter of a square is 40 cm. Find the area of the square. | def solve() -> int:
result = None
perimeter = 40
side = perimeter / 4
area = side**2
result = area
return result
|
Tom adds 12 teaspoons of flour and 8 teaspoons of sugar to a bowl. He leaves it out long enough for 10 teaspoons of sugar to evaporate. He then triples the amount of sugar in the bowl. What percentage of the mixture is flour? | def solve() -> int:
result = 0.6666666666666666
sugar = 8
flour = 12
total = sugar + flour
percent_flour = flour/total
evaporated_sugar = 10
leftover_sugar = sugar - evaporated_sugar
tripled_sugar = leftover_sugar*3
total_tripled = flour + tripled_sugar
percent_flour = flour/tota... |
A rectangle has a perimeter of 24 cm and an area of 36 cm^2. Find the length and width of the rectangle. | def solve() -> int:
perimeter = 24
area = 36
length = (perimeter + ((perimeter**2) - (16*area))**(1/2))/8
width = area/length
result = (length, width)
return result
|
In an IQ test, Kevin scored three times the lowest score. If the highest score was 120 and the range of scores was 90, what was Kevin's score? | def solve() -> int:
highest_score = 120
range_of_scores = 90
lowest_score = highest_score - range_of_scores
kevins_score = 3 * lowest_score
result = kevins_score
return result
|
A basketball team scores an average of 95 points in 10 games. If they want to score an average of 105 points in the next 4 games, how many total points do they need to score? | def solve() -> int:
previous_games = 10
previous_average = 95
next_games = 4
next_average = 105
total_points_needed = next_games * next_average - previous_games * previous_average
result = total_points_needed
return result
|
-Start with Question 1:.... Possible questions and programs: Julie bought a pack of 36 stickers. She used 12 stickers to decorate her notebook, gave 8 stickers to her friend, and divided the rest equally among her three cousins. How many stickers did each of her cousins get? | def solve() -> int:
stickers = 36
stickers = stickers - 12 - 8
stickers_per_cousin = stickers / 3
result = stickers_per_cousin
return result
|
A car rental company charges $25 per day plus $0.15 per mile for renting a car. A customer rented a car for 4 days and drove 120 miles. How much did the customer pay for the rental? | def solve() -> int:
daily_charge = 4 * 25
mileage_charge = 120 * 0.15
result = daily_charge + mileage_charge
return result
|
In a construction company, there are 6 workers building houses. Each of them builds 1 house in a month. As a group, they build an additional house every 2 months. In total, how many houses have been built after 2 months? | def solve() -> int:
workers = 6
houses_per_worker = 1
additional_houses = 1
months = 2
total_houses = (workers * houses_per_worker * months) + additional_houses
result = total_houses
return result
|
NEWLINE Nicole earns $25,000 a year as a part-time teacher. She spends 15% of her income on rent, 8% on food, and 5% on utilities. She also saves 10% of her income for retirement. How much money does Nicole have left at the end of the year? | def solve() -> int:
income = 25000
rent = income * 0.15
food = income * 0.08
utilities = income * 0.05
savings = income * 0.10
expenses = rent + food + utilities + savings
remaining = income - expenses
result = remaining
return result
|
Lucy the spider catches 15 bugs every morning and half that amount at night. If she takes a break to spin her web, how many bugs does Lucy catch per day? | def solve() -> int:
morning_bugs = 15
night_bugs = morning_bugs / 2
total_bugs = morning_bugs + night_bugs
result = total_bugs
return result
|
A soccer coach is taking a team of 30 players 50 miles to a tournament. His van can hold 15 players at a time. If he travels at 60 miles per hour, how long will it take to take all the players to the tournament? | def solve() -> int:
players = 30
distance = 50
capacity = 15
speed = 60
trips = players // capacity
if players % capacity!= 0:
trips += 1
time = distance / speed * trips
result = time
return result
|
Student: John gives his son a monthly allowance of 300 dollars. If he takes 20 dollars out of the allowance to buy coffee every day, how much money will John's son have at the end of the year? | def solve() -> int:
allowance = 300
coffee_cost = 20
days_in_year = 365
total_coffee_cost = coffee_cost * days_in_year
result = allowance * 12 - total_coffee_cost
return result
|
Matt buys 5 apples and 8 oranges. Each apple costs $0.25 and each orange costs $0.35. How much did he pay in total? | def solve() -> int:
apples = 5
oranges = 8
price_apple = 0.25
price_orange = 0.35
total_apples = apples * price_apple
total_oranges = oranges * price_orange
total_cost = total_apples + total_oranges
result = total_cost
return result
|
A group of friends decided to split a bill for $125.50 evenly. Each person also agreed to tip 18% of their portion of the bill. If there are 5 friends, what is the total amount paid by all of them, including tip? | def solve() -> int:
bill = 125.50
tip = 0.18
num_friends = 5
total_paid = (bill/num_friends)*(1+tip)*num_friends
result = total_paid
return result
|
Dean and Peter had some money. Dean had 8 quarters and 7 dimes and Peter had 9 dimes and 10 nickels. How much money did they have combined? | def solve() -> int:
dean_total = 8 * 25 + 7 * 10
peter_total = 9 * 10 + 10 * 5
total_money = dean_total + peter_total
result = total_money
return result
|
Akshay has $48 to buy apples and oranges from the store. Each apple costs $3 and each orange costs $2. How much money does Akshay have left if she bought 14 apples and 16 oranges? | def solve() -> int:
cost_apple = 3
cost_orange = 2
total_cost_apple = cost_apple * 14
total_cost_orange = cost_orange * 16
total_cost = total_cost_apple + total_cost_orange
money_left = 48 - total_cost
result = money_left
return result
|
A shopkeeper has sold 300 items in their store. If they sell an average of 4 items per hour and already sold 10 items, how many hours have they had the store open? | def solve() -> int:
items_sold = 300
average_items_per_hour = 4
items_already_sold = 10
items_remaining = items_sold - items_already_sold
hours_open = items_remaining / average_items_per_hour
result = hours_open
return result
|
Jake wants to buy a new laptop and is willing to spend half of his savings on it. If Jake has $2,000 in savings, how much can he spend on the laptop? | def solve() -> int:
savings = 2000
laptop_cost = savings / 2
result = laptop_cost
return result
|
**** Rachel is driving from town A to town B. It takes her 45 minutes to drive from one town to the other. How long will it take her to drive back to town A if she drives at the same speed? | def solve() -> int:
time = 45
time_back = time
result = time_back
return result
|
Possible additional questions: Alicia has 120 beads. She gives away 20% of them to her friends and then buys another 15 beads with her allowance. How many beads does she have now? | def solve() -> int:
beads = 120
beads = beads - 0.2 * beads
beads = beads + 15
result = beads
return result
|
Nick and Jack both paint a fence. Nick paints 15 meters of the fence per hour. Jack paints 3 meters of the fence per hour more than Nick. If Nick has painted 45 meters of the fence, how many meters will Jack have painted by that time? | def solve() -> int:
t = 45 / 15
Jack_painted = (15 + 3) * t
result = Jack_painted
return result
|
Martha plants 4 flowers every day for the first 5 days. The soil contains 6 bags of nutrients. She uses three of the bags every day. How many bags of nutrients are left after the 5 days? | def solve() -> int:
bags = 6
bags = bags - 3*5
result = bags
return result
|
Student: Linda went shopping and bought 2 cups for $2 each and 3 pencils for $1 each. How much did Linda spend in total? | def solve() -> int:
cups = 2
price_cup = 2
pencils = 3
price_pencil = 1
total_cups = cups * price_cup
total_pencils = pencils * price_pencil
total_spent = total_cups + total_pencils
result = total_spent
return result
|
Tom wants to buy a new bike that costs $200. He currently has $150, but then goes to work and earns $20 per hour for 5 hours. How many more hours does he need to work to be able to afford the bike? | def solve() -> int:
bike_cost = 200
current_money = 150
hourly_earning = 20
hours_worked = 5
money_needed = bike_cost - current_money
additional_hours_needed = money_needed / hourly_earning
hours_left = additional_hours_needed - hours_worked
result = hours_left
return ... |
A car traveled 120 km at a constant speed. If the car had traveled 20 km/h faster, it would have taken 30 minutes less. What was the car's speed? | def solve() -> int:
distance = 120
time_difference_in_hours = 0.5
speed_difference_in_kmh = distance / time_difference_in_hours
speed_difference_in_mph = speed_difference_in_kmh * 0.621371
speed = (2 * speed_difference_in_mph + speed_difference_in_mph) / 3
result = speed
return result
|
A bakery makes 200 loaves of bread a day. Each loaf requires 2 cups of flour and 1 cup of water. If a bag of flour costs $10 and a gallon of water costs $5, how much does the bakery spend on ingredients each day? | def solve() -> int:
flour_cost = 10
water_cost = 5
cups_flour_per_loaf = 2
cups_water_per_loaf = 1
loaves_made_per_day = 200
cups_flour_per_day = loaves_made_per_day * cups_flour_per_loaf
gallons_water_per_day = loaves_made_per_day * cups_water_per_loaf / 16
total_cost = cups_flour_per_d... |
Lucas bought books for a library, and depending on the genre of the book he will need more bookshelves. If it's a STEM book, he will need 3 bookshelves. If it's not, he will only need 1. If he bought 28 bookshelves and 11 non-STEM books, how many books in total did Lucas need to buy? | def solve() -> int:
num_stem_books = 28 - 11
num_non_stem_books = 11
num_stem_bookshelves = num_stem_books * 3
num_non_stem_bookshelves = num_non_stem_books * 1
total_bookshelves = num_stem_bookshelves + num_non_stem_bookshelves
total_books = num_stem_books + num_non_stem_books
result =... |
Student: Roy bought 5 bags of rice for $8 each. How much did he spend in total? | def solve() -> int:
bags = 5
price = 8
total = bags * price
result = total
return result
|
Brooke and Max were going to buy a $150.00 bike for their sister and went to the store to check the prices. Brooke had $25.00 saved up and Max had $15.00. Brooke then sold 5 balloons on the street charging $4.00 each, while Max picked up bottles to earn $0.50 per bottle. How much more money will Brooke and Max need to ... | def solve() -> int:
a = 25
b = 15
c = 4
d = 0.50
amount = 150
total = a + b
total_needed = amount - total
total_earned = (5*c) + (b/d)
needed = total_needed - total_earned
result = needed
return result
|
Emily rides her bike for 1 hour every day. She aims to increase the bike-riding time by 10 minutes per day. How much time will Emily spend riding her bike during one week? | def solve() -> int:
hours_per_day = 1
minutes_per_day = hours_per_day * 60
increase_per_day = 10
increase_per_week = increase_per_day * 7
total_minutes_per_week = minutes_per_day * 7 + increase_per_week
result = total_minutes_per_week
return result
|
Tina caught 6 fewer birds than the number of birds in the cage and added them to the cage. If there are 18 birds in the cage now, how many birds were in the cage originally? | def solve() -> int:
birds_in_cage_now = 18
birds_caught_by_tina = birds_in_cage_now - 6
birds_in_cage_originally = birds_caught_by_tina + birds_in_cage_now
result = birds_in_cage_originally
return result
|
A store sells a product for $50. On Black Friday, the store offers a 20% discount. What is the new price of the product? | def solve() -> int:
original_price = 50
discount_percent = 20/100
discount_amount = original_price * discount_percent
new_price = original_price - discount_amount
result = new_price
return result
|
A movie theater has tickets for $8.50 for adults and $6.50 for children. If 120 people attend the movie and 68 of them are adults, how much money did the theater collect? | def solve() -> int:
adults_ticket_price = 8.50
children_ticket_price = 6.50
total_attendees = 120
adults_attended = 68
children_attended = total_attendees - adults_attended
total_collected = (adults_ticket_price * adults_attended) + (children_ticket_price * children_attended)
result = total_... |
Student: The town has organised a carnival on the weekend. Each day there is an entry fee of $10 per person. There are 5 people in the family. How much will their total entry fee be? | def solve() -> int:
people = 5
entry_fee = 10
total_entry_fee = people * entry_fee
result = total_entry_fee
return result
|
A grocery store is having a sale on cereal where customers can buy one box and get the second one at half price. If Mike buys two boxes of cereal that cost $4 each, how much will he pay for both boxes? | def solve() -> int:
box_price = 4
discounted_price = box_price / 2
total_price = (box_price + discounted_price) * 2
result = total_price
return result
|
Student: A running track is 400 meters in length. If Sarah can run around the track 5 times in 25 minutes, how long will it take her to run around the track 3 times? | def solve() -> int:
track_length = 400
time_for_5_laps = 25
time_for_1_lap = time_for_5_laps / 5
time_for_3_laps = time_for_1_lap * 3
result = time_for_3_laps
return result
|
Tom wants to buy a camera. At Store A, the camera costs $800 with a 3% discount, while at Store B the same camera costs $780 with a 2.5% discount. What is the price difference between the two stores? | def solve() -> int:
price_store_a = 800
discount_store_a = 0.03
price_store_b = 780
discount_store_b = 0.025
discount_amount_store_a = price_store_a * discount_store_a
final_price_store_a = price_store_a - discount_amount_store_a
discount_amount_store_b = price_store_b * discount_s... |
Sarah has just signed up for a book club membership. For every 6 books she reads, she gets a free book. She has already gotten 3 free books. She is only 1 book away from another free one. How many books has she read? | def solve() -> int:
books_read = 6 * 3 + 5
free_books = 3 + (books_read // 6)
books_needed = 6 - (books_read % 6)
total_books = books_read + books_needed
result = total_books
return result
|
Student: Mary and her friend Sarah purchased 7 books. Each book cost $20. How much money did Sarah pay? | def solve() -> int:
books = 7
cost = 20
sarah_paid = books * cost
result = sarah_paid
return result
|
John has $50. He wants to buy some books worth $12.99 each and save the rest. How many books can he buy and how much money will he save? | def solve() -> int:
num_books = 50 // 12.99
spent = num_books * 12.99
saved = 50 - spent
result = (num_books, saved)
return result
|
A worker gets paid a base rate of $15 per hour and overtime of $30 per hour for any hour above 40 hours worked in a week. If the worker works 48 hours in a week, how much do they get paid? | def solve() -> int:
base_rate = 15
overtime_rate = 30
hours_worked = 48
if hours_worked <= 40:
pay = hours_worked * base_rate
else:
pay = 40 * base_rate + (hours_worked - 40) * overtime_rate
result = pay
return result
|
A car uses 8 liters of gas per 100 km. It starts with a full tank of 40 liters and drives for 2 hours with an average speed of 80 km/h. How much gas is left in the tank after the drive? | def solve() -> int:
distance = 80 * 2
gas_used = 8 * distance / 100
gas_left = 40 - gas_used
result = gas_left
return result
|
Student: Tim has nine $20 bills and four fewer $10 bills. How much money does Tim have in all? | def solve() -> int:
twenty_bills = 9
ten_bills = 4
total_amount = twenty_bills * 20 + ten_bills * 10
result = total_amount
return result
|
Cindy travels 6 miles north, 8 miles east, 2 miles south and 5 miles west. How far is Cindy now from her starting point? | def solve() -> int:
start = [0,0]
north = 6
east = 8
south = 2
west = 5
x_dist = east - west
y_dist = north - south
distance = (x_dist**2 + y_dist**2)**0.5
result = distance
return result
|
In a movie theater, a ticket costs $12.50 and a bag of popcorn costs $6. How much would it cost for a group of four people to buy a ticket and share two bags of popcorn? | def solve() -> int:
ticket_price = 12.50
popcorn_price = 6
num_people = 4
num_popcorns = 2
total_cost = (ticket_price*num_people) + (popcorn_price*num_popcorns)
result = total_cost
return result
|
John has 5 apples and wants to give them to his friends Bob, Sarah, and Mary in the ratio 3:2:4. How many apples will Mary get? | def solve() -> int:
total_ratio = 3+2+4
mary_ratio = 4
mary_apples = (mary_ratio/total_ratio)*5
result = mary_apples
return result
|
Carla buys a shirt for $25 and a pair of jeans for $40. She gets a 10% discount on the shirt and a 20% discount on the jeans. She also pays a 7% sales tax on the total amount after the discounts. How much does she pay in total? | def solve() -> int:
total = round(54.035, 2)
result = total
return result
|
Carol is baking cookies for a fundraiser. She needs 2 cups of flour, 1 cup of sugar, and 0.5 cups of butter for every 12 cookies. She wants to make 144 cookies. How much of each ingredient does she need? | def solve() -> int:
flour = 2
sugar = 1
butter = 0.5
cookies = 144
ratio = cookies / 12
flour_needed = flour * ratio
sugar_needed = sugar * ratio
butter_needed = butter * ratio
result = flour_needed, sugar_needed, butter_needed
return result
|
In a spelling bee, Carlos and Dora are on one team. The team's final score is obtained by adding the scores of the students of the same team. The score of each student is equal to the number of letters in the words they spelled correctly. Carlos spelled 15 words correctly with a total of 82 letters, while Dora spelled ... | def solve() -> int:
carlos_words = 15
carlos_letters = 82
dora_words = 10
dora_letters = 65
carlos_average = carlos_letters / carlos_words
dora_average = dora_letters / dora_words
carlos_expected = carlos_words * dora_average
dora_expected = dora_words * carlos_average
... |
A store sold 132 toys in one day. If this was 44 more toys than they sold in the previous day, how many toys were sold on the previous day? | def solve() -> int:
total_toys = 132
previous_day_toys = total_toys - 44
result = previous_day_toys
return result
|
Ben has a rectangular garden that is 12 meters long and 8 meters wide. He wants to plant roses along the perimeter of the garden, leaving 1 meter of space between each rose. If each rose costs $2.50, how much does he spend on roses? | def solve() -> int:
perimeter = (12 + 8) * 2
roses = perimeter / 1
cost = roses * 2.50
result = cost
return result
|
At the start of the month, a cashier can scan 20 items in a minute. As the month progresses, they grow more efficient and are able to scan 23 items per minute. How many more items can they scan in the final minute of the month compared to the first? | def solve() -> int:
first_minute = 20
last_minute = 23
difference = last_minute - first_minute
result = difference
return result
|
James wants enough plates that he only has to do dishes once every two days. He uses one plate for each meal and snack throughout the day. How many plates does he need to be able to only do dishes once every two days? | def solve() -> int:
plates_per_day = 3
days_per_dishwashing = 2
plates_needed = plates_per_day * days_per_dishwashing
result = plates_needed
return result
|
Sarah can read 30 pages in 45 minutes. How many pages can she read in 3 hours? | def solve() -> int:
pages_per_minute = 30 / 45
pages_per_hour = pages_per_minute * 60
pages_in_3_hours = pages_per_hour * 3
result = pages_in_3_hours
return result
|
A rectangular room is 5 meters long, 4 meters wide, and 3 meters high. What is the total area of the four walls? | def solve() -> int:
room_length = 5
room_width = 4
room_height = 3
wall_area_1 = room_height * room_width
wall_area_2 = room_height * room_width
wall_area_3 = room_height * room_length
wall_area_4 = room_height * room_length
total_wall_area = wall_area_1 + wall_area_2 + wall_area_3 + wal... |
If a rectangle has a length of 8 units and a width of 5 units, what is the area of the rectangle? | def solve() -> int:
length = 8
width = 5
area = length * width
result = area
return result
|
A pizza place sells slices of pizza for $2.75 each. If Karen wants to buy 8 slices of pizza, how much will she have to pay? | def solve() -> int:
slice_cost = 2.75
slice_count = 8
total_cost = slice_cost * slice_count
result = total_cost
return result
|
Student: A company manufactures 8000 pieces of ceramic vases annually. If they increase their manufacturing capacity by 15%, how many vases can they manufacture in a year now? | def solve() -> int:
vases = 8000
increase = 0.15
new_vases = vases * (1 + increase)
result = new_vases
return result
|
A group of 38 students went on a field trip to the zoo. A bus can only hold 35 students safely. If everybody takes the bus, how many buses are needed? | def solve() -> int:
num_buses = 38/35
result = num_buses // 1 + 1
return result
|
Student: A restaurant had 85 customers for lunch. For dinner, they had 140 customers. How many total customers did they serve for the day? | def solve() -> int:
lunch_customers = 85
dinner_customers = 140
total_customers = lunch_customers + dinner_customers
result = total_customers
return result
|
Possible new questions and programs: Rachel and Leo were making bracelets to sell at a school fair. They bought beads for $0.5 each and string for $1 per meter. Rachel made 15 bracelets, each using 20 beads and 25 cm of string. Leo made 12 bracelets, each using 18 beads and 30 cm of string. How much more did Rachel spe... | def solve() -> int:
rachel_beads = 15 * 20
rachel_string = 15 * 0.25
rachel_cost = rachel_beads * 0.5 + rachel_string * 1
leo_beads = 12 * 18
leo_string = 12 * 0.3
leo_cost = leo_beads * 0.5 + leo_string * 1
difference = rachel_cost - leo_cost
result = difference
return result... |
Lonnie has 100 dollars in his wallet. He spent 25% of it on food and 10% on transportation. How much money is left in his wallet? | def solve() -> int:
wallet = 100
food = wallet * 0.25
transportation = wallet * 0.10
left = wallet - food - transportation
result = left
return result
|
Mary buys 6 boxes worth $ 5 each and 4 boxes worth $ 8 each every month. She saves money for 3 months. How much money does she spend in total? | def solve() -> int:
boxes_5 = 6
boxes_8 = 4
cost_5 = 5
cost_8 = 8
total_cost_5 = boxes_5 * cost_5
total_cost_8 = boxes_8 * cost_8
total_cost = total_cost_5 + total_cost_8
total_cost_3_months = total_cost * 3
result = total_cost_3_months
return r... |
The area of a rectangle exceeds its perimeter by 30 square meters. The length of the rectangle is 10 meters more than the width. Find the dimensions of the rectangle. | def solve() -> int:
difference = 30
length = 10 + ((4 + difference) ** (1/2))/2
width = 10 - ((4 + difference) ** (1/2))/2
result = (length, width)
return result
|
If a duck requires 2 feet and a chicken requires 4 feet, how many feet are required for a farm that has 3 ducks and 6 chickens? | def solve() -> int:
duck_feet = 2
chicken_feet = 4
num_ducks = 3
num_chickens = 6
total_duck_feet = duck_feet * num_ducks
total_chicken_feet = chicken_feet * num_chickens
total_feet = total_duck_feet + total_chicken_feet
result = total_feet
return result
|
Student: A store sells boxes of blueberries and each box costs $3.45. If Tom buys 16 boxes of blueberries, how much does he spend in total? | def solve() -> int:
num_boxes = 16
price_per_box = 3.45
total_cost = num_boxes * price_per_box
result = total_cost
return result
|
Jessica buys 6 apples for $2.50 each and a total cost of $15. How much money did she spend in total? | def solve() -> int:
number_of_apples = 6
cost_per_apple = 2.50
total_cost = number_of_apples * cost_per_apple
result = total_cost
return result
|
A company has earned 200,000 dollars in revenue after paying all expenses. If the total expenses were 150,000 dollars, what is the net income of the company? | def solve() -> int:
revenue = 200000
expenses = 150000
net_income = revenue - expenses
result = net_income
return result
|
A sports club has 400 members, each paying $50 per month for the membership fee. The club also offers fitness classes, which cost $10 per class for members and $15 per class for non-members. Each month, 60% of the members and 20 non-members attend an average of 4 classes each. How much income does the club generate fro... | def solve() -> int:
income_fee = 400 * 50
members_class = 0.6 * 400
non_members_class = 20
income_members_class = members_class * 4 * 10
income_non_members_class = non_members_class * 4 * 15
income_class = income_members_class + income_non_members_class
income = income_fee + income_class... |
Sophia wants to run 20 miles this week for her marathon training. She has already run 8 miles. How many more miles does she need to run? | def solve() -> int:
total_miles = 20
miles_run = 8
miles_left = total_miles - miles_run
result = miles_left
return result
|
A bookstore has 500 books to sell and each book is priced at $15. If they sell 50% of the books in a month, how much money will they earn? | def solve() -> int:
books = 500
price_per_book = 15
percentage_sold = 50
books_sold = books * (percentage_sold / 100)
total_earnings = books_sold * price_per_book
result = total_earnings
return result
|
John has a total of 24 marbles. He gave away 5 marbles to his friends, and kept 6 for himself. How many marbles do his friends have? | def solve() -> int:
total_marbles = 24
marbles_given_away = 5
marbles_kept = 6
result = marbles_given_away - marbles_kept
return result
|
Ben works 5 days a week and earns $200 per day. How much money does Ben make in a month (4 weeks)? | def solve() -> int:
days_per_week = 5
salary_per_day = 200
weeks_per_month = 4
total_salary = days_per_week * salary_per_day * weeks_per_month
result = total_salary
return result
|
A rectangular garden has a length that is three times its width. If the perimeter of the garden is 80 meters, find its area. | def solve() -> int:
length = 3
width = 1
perimeter = 80
width = perimeter / (2 * length + 2 * width)
length = width * 3
area = length * width
result = area
return result
|
Jack is fascinated with ancient artifacts and decides to collect them. He spends 4 months researching before going on a 2-year-long expedition in search of his first artifact. The second artifact takes half the time for both research and discovery. How long did it take him to find both artifacts? | def solve() -> int:
research_time_first_artifact = 4
expedition_time_first_artifact = 2 * 12
research_time_second_artifact = research_time_first_artifact / 2
expedition_time_second_artifact = expedition_time_first_artifact / 2
total_time = research_time_first_artifact + expedition_time_fir... |
Tony collects a box of 120 pencils. Upon examining them, he finds that only 50% are sharpened, and he tosses 10 for being too short. How many pencils does Tony keep? Jordan spent $24 on 8 packs of pencils that cost $3 each. If each pack contains 10 pencils, how many pencils did he buy? | def solve() -> int:
total_pencils = 120
sharpened_pencils = total_pencils * 0.5
usable_pencils = sharpened_pencils - 10
total_cost = 24
cost_per_pack = 3
pack_size = 10
total_packs = total_cost / cost_per_pack
total_pencils_jordan = total_packs * pack_size
result = usable_p... |
A rectangle has a length of 8 cm and a width of 5 cm. What is the perimeter of the rectangle? | def solve() -> int:
length = 8
width = 5
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.