question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
-------- Possible questions and programs are: Anna bought a skirt for $24 and a blouse for 75% of the price of the skirt. She also paid a 10% sales tax on the total purchase. How much did Anna spend in total? | def solve() -> int:
blouse_price = 0.75 * 24
total_before_tax = 24 + blouse_price
tax = 0.1 * total_before_tax
total_after_tax = total_before_tax + tax
result = total_after_tax
return result
|
Logan runs a mile in 10 minutes. After a few weeks of training, his time decreases by 90%. If he manages to run 3 miles at his new speed, how long does it take him now? | def solve() -> int:
mile_time = 10
new_mile_time = mile_time * 0.1
total_time = new_mile_time * 3
result = total_time
return result
|
A rectangular garden has a length of 10 meters and a width of 5 meters. What is the perimeter of the garden? | def solve() -> int:
length = 10
width = 5
perimeter = 2*length + 2*width
result = perimeter
return result
|
A restaurant has 50 tables and each table can seat 4 people. If the restaurant is full and each person orders an average of $30 worth of food, how much money is made? | def solve() -> int:
num_tables = 50
seats_per_table = 4
capacity = num_tables * seats_per_table
avg_order = 30
total_sales = capacity * avg_order
result = total_sales
return result
|
Jan and her cousin were jumping rope. Jan had jumped 9 times and her cousin had jumped 6 times. Jan wanted to jump at least 5 times more than her cousin. How many more times does Jan have to jump if her cousin jumps another 8 times? | def solve() -> int:
goal = 5
jan_jump = 9
cousin_jump = 6
cousin_extra_jump = 8
total_jump = jan_jump + cousin_jump + cousin_extra_jump
needed_jump = total_jump - jan_jump - goal
result = needed_jump
return result
|
Alex purchased 6 books which cost $20 each. How much did he spend in total? | def solve() -> int:
number_of_books = 6
cost_per_book = 20
total_cost = number_of_books * cost_per_book
result = total_cost
return result
|
Jenny wants to buy new curtains for her rectangular-shaped living room. She needs 4 panels of curtains that cost $25.00 each. What is the total cost? | def solve() -> int:
num_panels = 4
cost_per_panel = 25.00
total_cost = num_panels * cost_per_panel
result = total_cost
return result
|
A group of 12 people go on a boat and bring 36 bottles of water. If they divide the bottles equally, how many bottles of water does each person get? | def solve() -> int:
num_people = 12
num_bottles = 36
bottles_per_person = num_bottles / num_people
result = bottles_per_person
return result
|
Alex has 15 times as much money as Mia, and Mia has one-quarter as much money as Owen. If Alex has $3000, how much money does Owen have? | def solve() -> int:
alex = 3000
mia = alex / 15
owen = mia * 4
result = owen
return result
|
Mia has 30 flowers, and she plants 5 more flowers every week. How many flowers will Mia have in two months? | def solve() -> int:
flowers = 30
for i in range(8):
flowers = flowers + 5
result = flowers
return result
|
3. Sarah had $25 in her account. She spent $5 on a sandwich and $10 on a smoothie. How much is left in her account? | def solve() -> int:
initial_amount = 25
cost_of_item1 = 5
cost_of_item2 = 10
total_cost = cost_of_item1 + cost_of_item2
result = initial_amount-total_cost
return result
|
Dave is trying to save money and budgets $75 per week for groceries. If he already spent $35 for the week, how much can he spend on groceries for the rest of the week? | def solve() -> int:
budget = 75
spent = 35
leftover = budget - spent
result = leftover
return result
|
Student: There are 20 apples in a basket. If 6 apples are taken out of the basket and 3 more apples are added back in, how many apples are in the basket now? | def solve() -> int:
apples = 20
taken_out = 6
added_in = 3
apples = apples - taken_out
apples = apples + added_in
result = apples
return result
|
**Question 1** Matthew has 12 watermelons, each of which is 1 kilogram in weight. If he wants to split them evenly between 4 friends, how much will each friend get? | def solve() -> int:
total_weight = 12
num_friends = 4
result = total_weight/num_friends
return result
|
In a toy store, there are 25 dolls, 20 cars and 15 action figures. If each doll costs $10, each car costs $15 and each action figure costs $8, and there is a 10% discount on all items, what is the total cost of all the toys after the discount? | def solve() -> int:
doll_cost = 25*10*0.9
car_cost = 20*15*0.9
figure_cost = 15*8*0.9
result = doll_cost + car_cost + figure_cost
return result
|
Student: John replaced his shower head which used 20 gallons of water per minute with a new shower head that uses 50% less water. How much water did John save when he takes a 10-minute shower? | def solve() -> int:
old_shower_head_flow = 20
new_shower_head_flow = old_shower_head_flow * 0.5
shower_duration = 10
old_shower_head_usage = old_shower_head_flow * shower_duration
new_shower_head_usage = new_shower_head_flow * shower_duration
water_saved = old_shower_head_usage - new_shower... |
``` A toy company produces 2400 toys in a week. If they increase their production by 25%, how many toys will they produce in one week? | def solve() -> int:
percent_increase = 25/100
increase_in_production = 2400 * percent_increase
new_production = 2400 + increase_in_production
result = new_production
return result
|
Paul went to the market and bought 4 apples, 2 oranges, and 6 bananas. Apples cost $2 each, oranges cost $0.50 each, and bananas cost $1 each. How much did Paul spend in total? | def solve() -> int:
apples = 4 * 2
oranges = 2 * 0.5
bananas = 6 * 1
totalCost = apples + oranges + bananas
result = totalCost
return result
|
A farmer has 150 cows, and he wants to divide them into 3 equal groups. How many cows are in each group? | def solve() -> int:
cows = 150
groups = 3
cows_per_group = cows/groups
result = cows_per_group
return result
|
John wants to buy a new laptop that costs $800. He has saved up $350 and plans to save $50 each week. How many weeks will it take for him to save enough money to buy the laptop? | def solve() -> int:
week = 0
savings = 350
while savings < 800:
week += 1
savings += 50
result = week
return result
|
Jake needs to pack 14 apples into boxes with the same number of apples in each box. How many boxes does he need if each box holds 5 apples? | def solve() -> int:
num_apples = 14
max_per_box = 5
num_boxes = num_apples // max_per_box
result = num_boxes
return result
|
Student: Of the 540 students in the high school, 75% are part of one of the school's clubs. How many students are part of a club? | def solve() -> int:
total_students = 540
club_percentage = 0.75
club_students = total_students * club_percentage
result = club_students
return result
|
A car travels at a speed of 60km/h. What is the distance traveled by the car in 3 hours? | def solve() -> int:
speed = 60
time = 3
distance = speed * time
result = distance
return result
|
Emma needs to walk 5 miles. She has to go up a hill that has a 30% slope for 2 miles, then she goes down a hill that has a 20% slope for 1.5 miles. The rest of the way is flat. How much of the 5 miles is flat ground? | def solve() -> int:
distance_total = 5
hill1_distance = 2
hill1_slope = 0.3
hill2_distance = 1.5
hill2_slope = -0.2
hill1_height = hill1_distance * hill1_slope
hill2_height = hill2_distance * hill2_slope
flat_distance = distance_total - (hill1_distance + hill2_distance)
flat_height =... |
In a class of 40 students, 15 are boys. What percentage of the class are girls? | def solve() -> int:
total_students = 40
boys = 15
girls = total_students - boys
percent_girls = (girls/total_students) * 100
result = percent_girls
return result
|
Student: John is planning a camping trip from his house to a lake 3 miles away. He walks the first mile of his journey at 5 miles per hour and the next two miles at 7 miles per hour. How much time does he need to complete the trip? | def solve() -> int:
distance_1 = 1
distance_2 = 2
speed_1 = 5
speed_2 = 7
time_1 = 0
time_2 = 0
total_time = 0
time_1 = distance_1 / speed_1
time_2 = distance_2 / speed_2
total_time = time_1 + time_2
result = total_time
return result
|
Student: A toy store sells two types of puzzles for $8 each and three types of board games for $15 each. If a customer buys one puzzle and two board games, how much does the customer pay? | def solve() -> int:
puzzle_price = 8
board_game_price = 15
total_cost = puzzle_price + (2 * board_game_price)
result = total_cost
return result
|
A pizza is circular with a diameter of 18 inches. What is its area in square inches? | def solve() -> int:
diameter = 18
radius = diameter/2
area = 3.14 * radius**2
result = area
return result
|
A jar contains 80 jellybeans with 30% being red, 40% being green and 30% being yellow. How many jellybeans are green? | def solve() -> int:
total_jellybeans = 80
green_percentage = 40
green_jellybeans = (green_percentage/100) * total_jellybeans
result = green_jellybeans
return result
|
A restaurant has 50 tables, each table seats 4 people. On average, how many people can the restaurant serve for dinner when it is full? | def solve() -> int:
table_capacity = 4
num_tables = 50
restaurant_capacity = table_capacity * num_tables
result = restaurant_capacity
return result
|
Jenny returned home from vacation to find her houseplants overgrown with 27 branches. If Jenny can trim 12 branches per hour and her gardener can trim 6 branches per hour, how long will it take them to prune all of the plants? | def solve() -> int:
jenny_trim_rate = 12
gardener_trim_rate = 6
total_branches = 27
jenny_hours = total_branches / jenny_trim_rate
gardener_hours = total_branches / gardener_trim_rate
total_hours = jenny_hours + gardener_hours
result = total_hours
return result
|
Jack drinks 12 water bottles and his friend drinks half as many as Jack does. Their other friend drinks 4 times as many water bottles as Jack's friend does. What is the average number of water bottles consumed per person? | def solve() -> int:
jack = 12
friend = jack / 2
other_friend = friend * 4
total_bottles = jack + friend + other_friend
num_people = 3
average_bottles = total_bottles / num_people
result = average_bottles
return result
|
A jewelry store purchased 50 necklaces for $750 and sold 30 for $45 each. How much money did the store make? | def solve() -> int:
necklaces_purchased = 50
price_purchased = 750
necklaces_sold = 30
price_each_necklace = 45
total_profit = necklaces_sold*price_each_necklace - price_purchased
result = total_profit
return result
|
Student: A taxi charges a flat rate of $2.50 plus a fee of $0.75 per mile. How much did the passenger pay for a 20 mile ride? | def solve() -> int:
flat_rate = 2.50
fee_per_mile = 0.75
distance = 20
total_fee = flat_rate + fee_per_mile * distance
result = total_fee
return result
|
Student: A restaurant has 30 tables with 4 chairs at each table. The restaurant is 75% full. How many people are currently dining in the restaurant? | def solve() -> int:
tables = 30
chairs_per_table = 4
percent_full = 0.75
chairs_full = tables * chairs_per_table * percent_full
result = chairs_full
return result
|
Mr. Wong decided to buy a new car. The car dealer offered a discount of 8% on the original price, which was $30,000. He then had to pay an additional tax of 6%. How much did Mr. Wong pay for the car? | def solve() -> int:
car_price = 30000
discount = car_price * 0.08
price_after_discount = car_price - discount
tax = price_after_discount * 0.06
total_price = price_after_discount + tax
result = total_price
return result
|
Mira and Zira are friends who like to bake cakes. Mira can bake a cake in 2 hours, while Zira can bake a cake in 3 hours. How long will it take for them to bake 9 cakes together? | def solve() -> int:
x = 9 / (1/2 + 1/3)
time = x
result = f'It will take them {time} hours to bake 9 cakes together.'
return result
|
Clara and Jack went to a burger joint. Clara ordered a triple cheeseburger, and Jack ordered half as much cheeseburger as Clara did. If they order another set of cheeseburgers, how many cheeseburgers will Jack have consumed in total? | def solve() -> int:
clara_cheeseburgers = 3
jack_cheeseburgers = clara_cheeseburgers / 2
total_cheeseburgers = clara_cheeseburgers + jack_cheeseburgers + jack_cheeseburgers
result = total_cheeseburgers
return result
|
A pirate finds three treasure chests a month. His best mate, a mermaid, finds five sunken ships a month, but only ones that have gold, not just silver or bronze. How many months can the pirate and mermaid survive with their treasure? | def solve() -> int:
pirate_chests_per_month = 3
mermaid_ships_per_month = 5
months_survived = 0
while pirate_chests_per_month > 0 and mermaid_ships_per_month > 0:
months_survived += 1
pirate_chests_per_month -= 1
mermaid_ships_per_month -= 1
result = months_sur... |
Student: Fiona drank 0.75 liters of water every hour for 6 hours. Gabe drank 1.2 liters of water every hour for 4 hours. How many liters of water did the two friends drink in total? | def solve() -> int:
fiona_hours = 6
gabe_hours = 4
fiona_liters_per_hour = 0.75
gabe_liters_per_hour = 1.2
fiona_total_liters = fiona_hours * fiona_liters_per_hour
gabe_total_liters = gabe_hours * gabe_liters_per_hour
total_liters = fiona_total_liters + gabe_total_liters
result = total_l... |
Katarina has $124. She wants to buy a toy that costs $48. If she has to pay 8% sales tax, how much money does she need to pay in total? | def solve() -> int:
money = 124
price = 48
tax_rate = 0.08
subtotal = price
tax = subtotal * tax_rate
total = subtotal + tax
amount_needed = total - money
result = amount_needed
return result
|
A recipe calls for 3/4 cup of sugar to make 12 cookies. If you want to make 24 cookies, how much sugar do you need? | def solve() -> int:
num_cookies = 24
sugar_per_cookie = 3/4 / 12
sugar_needed = sugar_per_cookie * num_cookies
result = sugar_needed
return result
|
Lily borrowed $500 from her friend and promised to return it with a 10% interest in two months. She returned the money after a month and a half with $60 interest. How much money did Lily borrow? | def solve() -> int:
borrowed_amount = 500
interest_rate = 0.10
interest_amount = 60
time_period = 1.5
interest_per_month = interest_amount / time_period
borrowed_amount_per_month = borrowed_amount * interest_rate
borrowed_amount = (interest_per_month / borrowed_amount_per_month) * ... |
Rachel has 5 times as many books as Frank. Frank has 4 books. How many books does Rachel have? | def solve() -> int:
Frank_books = 4
Rachel_books = Frank_books * 5
result = Rachel_books
return result
|
There are 50 ingredients in a recipe. Chef Smith has 4 kitchens, each with 6 counters that can hold 8 ingredients each. If his counters are 75% full, how many ingredients are there in all his kitchens? | def solve() -> int:
num_ingredients = 50
num_kitchens = 4
num_counters_per_kitchen = 6
num_ingredients_per_counter = 8
percent_full = 0.75
num_counters_total = num_kitchens * num_counters_per_kitchen
num_ingredients_total = num_counters_total * num_ingredients_per_counter
num_ingred... |
In a factory, a machine produces 1200 items in 5 hours. If the machine is operated for 7 hours, how many items does it produce? | def solve() -> int:
items_per_hour = 1200 / 5
operating_hours = 7
total_items = items_per_hour * operating_hours
result = total_items
return result
|
Mr. Johnson has a small zoo with 50 animals, but only 80% of the animals are on display at any given time. If he charges $10 to visit the zoo, how much money does he make in a year? | def solve() -> int:
animals = 50
displayed = animals * 0.8
visitors = displayed * 365
income = visitors * 10
result = income
return result
|
A rectangular garden is 12 meters long and 8 meters wide. If the owner wants to fence the garden with wire fencing that costs $5 per meter, how much money will it cost to fence the garden? | def solve() -> int:
length = 12
width = 8
perimeter = 2 * (length + width)
cost_per_meter = 5
total_cost = perimeter * cost_per_meter
result = total_cost
return result
|
A hardware store is selling a bag of 50 nails and 20 screws for $10. If Jennifer wants to buy enough nails and screws to complete her woodworking project, which requires 100 nails and 40 screws, how much will it cost her? | def solve() -> int:
nails_in_bag = 50
screws_in_bag = 20
cost_of_bag = 10
nails_needed = 100
screws_needed = 40
nail_cost = (cost_of_bag / (nails_in_bag + screws_in_bag)) * nails_needed
screw_cost = (cost_of_bag / (nails_in_bag + screws_in_bag)) * screws_needed
total_cost ... |
A factory produced 85 tons of steel this month. If 3/5 of the steel was used to make cars, how many tons of steel was used to make cars? | def solve() -> int:
total_steel = 85
used_steel = total_steel * 3/5
result = used_steel
return result
|
Paul wants to drive 260 miles to visit his family. His car can travel 20 miles per gallon and has a gas tank capacity of 18 gallons. How many more miles can Paul drive his car without filling the tank again after reaching his family's home? | def solve() -> int:
miles_to_drive = 260
miles_per_gallon = 20
gas_tank_capacity = 18
gallons_needed = miles_to_drive / miles_per_gallon
miles_remaining = gas_tank_capacity * miles_per_gallon - miles_to_drive
result = miles_remaining
return result
|
Chloe is working at a bakery. There were some people buying bread when she started her shift. Then 5 more people came in and bought pastries and 2 people left. There are now 18 people in the bakery. How many people were buying bread at the start of Chloe's shift? | def solve() -> int:
x = (18 + 2) - 5
result = x
return result
|
In a music band, there are guitarists and drummers. Each guitarist has 6 strings and each drummer has 4 drums. There are 5 guitarists in the band. Altogether all instruments have 38 components. How many drummers are in the band? | def solve() -> int:
guitarists = 5
drummers = (38 - (guitarists * 6)) / 4
result = drummers
return result
|
A company has 60 employees, and 30% of them work part-time. How many employees work full-time? | def solve() -> int:
employees = 60
part_time_rate = 0.3
num_part_time = employees * part_time_rate
num_full_time = employees - num_part_time
result = num_full_time
return result
|
Student: If a population of a town is 3 million and 1000 people are leaving every day, how many days does this town needs to be population-free? | def solve() -> int:
population = 3000000
leaving_people = 1000
days = population // leaving_people
result = days
return result
|
-If you are unable to write 10 questions of **similar difficulty level** as the example, you can write less, but at least 4 questions. Some possible questions are: A car travels at a constant speed of 48 miles per hour. It uses 1 gallon of gas every 20 miles. How much gas does it use in 3 hours? | def solve() -> int:
distance = 48 * 3
gas_per_mile = 1 / 20
gas_used = distance * gas_per_mile
result = gas_used
return result
|
A recipe for a cake requires 200 grams of flour, 100 grams of sugar, and 4 eggs. How many cakes can Lisa make if she has 1 kg of flour, 500 grams of sugar, and 18 eggs? | def solve() -> int:
flour_per_cake = 200
sugar_per_cake = 100
eggs_per_cake = 4
flour_total = 1000
sugar_total = 500
eggs_total = 18
cakes_with_flour = flour_total / flour_per_cake
cakes_with_sugar = sugar_total / sugar_per_cake
cakes_with_eggs = eggs_total / eggs_per_cake
cakes_... |
Student: Kevin and Laura are mowing a lawn. Kevin can mow the lawn in 3 hours, and Laura can mow the lawn in 4 hours. They decide to split the lawn into two equal parts and mow them separately. How long, in minutes, will it take them to finish mowing the lawn? | def solve() -> int:
kevin_time = 3
laura_time = 4
kevin_time_minutes = kevin_time * 60
laura_time_minutes = laura_time * 60
total_time_minutes = kevin_time_minutes + laura_time_minutes
result = total_time_minutes
return result
|
A recipe calls for 1/2 cup of sugar to make 1 dozen cookies. How many cups of sugar would be needed to make 3 dozen cookies? | def solve() -> int:
cups_sugar_per_dozen = 1/2
num_dozen_cookies = 3
total_cups_sugar = cups_sugar_per_dozen * num_dozen_cookies
result = total_cups_sugar
return result
|
Samantha is buying tickets for a concert for her group of 12 friends. Each ticket cost $75. How much money will Samantha spend on tickets for her group? | def solve() -> int:
num_friends = 12
ticket_cost = 75
total_cost = num_friends * ticket_cost
result = total_cost
return result
|
Student: Pat drove 475 miles in 18 hours. How many miles did Pat drive each hour? | def solve() -> int:
miles = 475
hours = 18
miles_per_hour = miles / hours
result = miles_per_hour
return result
|
The ratio of boys to girls in a class is 3:5. If there are 24 girls, how many boys are in the class? | def solve() -> int:
ratio_bg = 3 / 5
girls = 24
boys = ratio_bg * girls / (1 - ratio_bg)
result = boys
return result
|
Rachel loves collecting stickers and has 10 stickers in addition to the 15 that she received from her best friend. She bought 30 stickers from a store and found that 5 of them were damaged and unusable. Rachel decided to give 35 stickers to her cousin. How many stickers did Rachel keep for herself? | def solve() -> int:
stickers_from_friend = 15
stickers_bought = 30
damaged_stickers = 5
stickers_given_away = 35
total_stickers = stickers_from_friend + stickers_bought - damaged_stickers - stickers_given_away
result = total_stickers
return result
|
A group of 12 people went to an amusement park. Each ticket costs $25. The group got a discount of $100 using a coupon. How much does each person have to pay? | def solve() -> int:
total_people = 12
ticket_cost = 25
discount = 100
total_bill = total_people * ticket_cost - discount
bill_per_person = total_bill / total_people
result = bill_per_person
return result
|
Ethan is arranging books on a bookshelf. He has 100 books to stack. On the shelf, he can place 5 books vertically and 2 sets of vertically stacked books side-by-side. How many shelves does Ethan need to arrange all of his books? | def solve() -> int:
books_per_shelf = 5 * 2
total_books = 100
shelves_needed = total_books // books_per_shelf
result = shelves_needed
return result
|
A farmer purchased 400 kg of feed for $200. He used 100 kg of it for his own livestock and sold 200 kg at $1.20/kg. For the remaining, he found that the quality of the feed had deteriorated and sold it at 40% discount. What was the total revenue and profit? | def solve() -> int:
total_cost = 200
selling_price_1 = 1.2
discount = 0.4
used = 100
sold_1 = 200
remaining = 400 - used - sold_1
revenue_1 = selling_price_1 * sold_1
discounted_price = selling_price_1 * (1 - discount)
revenue_2 = remaining * discounted_price
total_revenue = reve... |
A car travels 60 km per hour. How far will it travel in 4 hours? | def solve() -> int:
distance = 60 * 4
result = distance
return result
|
A pool is 20 meters long, 10 meters wide, and 2 meters deep. What is its total volume in cubic meters? | def solve() -> int:
length = 20
width = 10
depth = 2
volume = length * width * depth
result = volume
return result
|
Student: Mr. Brown runs three types of workshops for his students. There are seven times as many music workshops as drama workshops. The number of art workshops is two fifths that of music workshops. If Mr. Brown has 25 drama workshops, how many workshops does he run in total? | def solve() -> int:
drama_workshops = 25
music_workshops = drama_workshops * 7
art_workshops = music_workshops * 2/5
total_workshops = drama_workshops + music_workshops + art_workshops
result = total_workshops
return result
|
John has 24 marbles. He gave away a quarter of the marbles, and he still had two-thirds as many marbles as Sarah. How many marbles does Sarah have? | def solve() -> int:
john_marbles = 24
john_marbles_given_away = john_marbles / 4
john_marbles_remaining = john_marbles - john_marbles_given_away
sarah_marbles = (john_marbles_remaining / 2) * 3
result = sarah_marbles
return result
|
Student: A rectangular field is 7 meters long and 5 meters wide. If a fence post is installed at each corner and every 2 meters along the longer sides, how many fence posts are needed? | def solve() -> int:
length = 7
width = 5
longer_side_posts = (length // 2) + 1
shorter_side_posts = (width // 2) + 1
total_posts = longer_side_posts + shorter_side_posts + 4
result = total_posts
return result
|
Karen drove 840 miles on her trip. The first day she drove 350 miles. If she drove the same distance each day, how many more days did it take her to complete her trip? | def solve() -> int:
total_distance = 840
distance_first_day = 350
distance_per_day = distance_first_day
days = (total_distance - distance_first_day) / distance_per_day
result = days
return result
|
A classroom has 30 students, and each student needs a notebook that costs $3 and a pencil that costs $1.50. Calculate the total cost of stationery for the classroom. | def solve() -> int:
student_count = 30
notebook_cost = 3
pencil_cost = 1.50
total_cost = (notebook_cost + pencil_cost) * student_count
result = total_cost
return result
|
There are 250 students in a college. If the ratio of boys to girls is 3:5, how many boys are there in the college? | def solve() -> int:
total_students = 250
boy_ratio = 3/(3+5)
girl_ratio = 5/(3+5)
boys = total_students * boy_ratio
result = boys
return result
|
The university's budget for the semester is $15 million. If 50% of the budget goes towards scholarships and $3 million goes towards building new facilities. How much money is left for hiring new faculty? | def solve() -> int:
budget = 15000000
scholarships = budget * 0.5
facilities = 3000000
remaining_budget = budget - scholarships - facilities
result = remaining_budget
return result
|
Lily the fisherman caught a school of poisonous fish. She sold 15 fishes to a restaurant, but when she tried to sell to the local store, she got banned, fined $40, and asked to leave the town. If she earned $12 for every fish she sold, how much money is she left with? | def solve() -> int:
fish_caught = 15
fish_sold = 15
price_per_fish = 12
fine = 40
total_earned = fish_sold * price_per_fish
total_earned -= fine
result = total_earned
return result
|
A company produces 5000 products per day. If each product costs $3 and the company operates for 20 days in a month, calculate the total revenue generated in a month. | def solve() -> int:
products_per_day = 5000
cost_per_product = 3
days_per_month = 20
revenue_per_month = products_per_day * cost_per_product * days_per_month
result = revenue_per_month
return result
|
A truck can travel 200 kilometers on 16 liters of gas. How many kilometers can it travel on 80 liters of gas? | def solve() -> int:
kmd16l = 200
kmd80l = kmd16l * 80/16
result = kmd80l
return result
|
A car travels a total distance of 800 miles. It travels the first 400 miles at an average speed of 60 miles per hour and the second 400 miles at an average speed of 70 miles per hour. What is the total travel time? | def solve() -> int:
time_first_400miles = 400 / 60
time_second_400miles = 400 / 70
total_time = time_first_400miles + time_second_400miles
result = total_time
return result
|
On a math test, John scored 85%, which was 17 points higher than the class average. What was the class average? | def solve() -> int:
john_score = 85
class_average = (john_score - 17) / 100
result = class_average
return result
|
Tom has collected 100 stones. At least 30% of them are igneous rocks. All of the rest are sedimentary, except for 4 that are metamorphic. How many stones are sedimentary? | def solve() -> int:
stones = 100
igneous_rocks = stones * 0.3
sedimentary_rocks = stones - igneous_rocks - 4
result = sedimentary_rocks
return result
|
Olivia wants to buy 2 boxes of pencils that cost 12 dollars each, 1 set of markers that costs 18 dollars, and a backpack that costs 75 dollars. If there are 100 cents in a dollar, how much will Olivia pay in total, in cents? | def solve() -> int:
box_pencil_cost = 12
num_boxes_pencils = 2
markers_cost = 18
backpack_cost = 75
total_cost = (box_pencil_cost * num_boxes_pencils) + markers_cost + backpack_cost
total_cost_in_cents = total_cost * 100
result = total_cost_in_cents
return result
|
Student: Emily has a coupon that takes 20% off of her entire purchase at a store. If she buys 5 items priced at $10 each, how much will she pay after applying the coupon? | def solve() -> int:
item_price = 10
num_items = 5
discount_percentage = 0.2
total_price_before_discount = item_price * num_items
discount_amount = total_price_before_discount * discount_percentage
total_price_after_discount = total_price_before_discount - discount_amount
result = total_price... |
4. David bought 9 baseball caps for a total of $63, including tax. What was the cost of each cap? | def solve() -> int:
num_caps = 9
total_cost = 63
cost_per_cap = total_cost/num_caps
result = cost_per_cap
return result
|
phanie earns $15 for every hour of babysitting. She babysits for 5 hours every other week for 6 months. However, she has to pay her mom $70 for her phone bill. How much money does Stephanie have left after paying her mom? | def solve() -> int:
pay_per_hour = 15
hours_babysat = 5
number_of_weeks = 26
total_earnings = pay_per_hour * hours_babysat * number_of_weeks
phone_bill = 70
remaining_earnings = total_earnings - phone_bill
result = remaining_earnings
return result
|
Maria is running on a treadmill. She has already spent 30 minutes running. She has completed 5 other workouts and finished them in an average of 25 minutes each. How many more minutes can she spend running on the treadmill if she doesn't want her average time to go over 40 minutes per workout? | def solve() -> int:
total_time = 30 + 5 * 25
num_workouts = 6
max_avg_time = 40
max_time = (max_avg_time * (num_workouts + 1)) - total_time
result = max_time
return result
|
A farmer wants to distribute 72 apples between several baskets. If he puts 6 apples in each basket, how many baskets will he need? | def solve() -> int:
apples = 72
apples_per_basket = 6
baskets_needed = apples // apples_per_basket
if apples % apples_per_basket > 0:
baskets_needed += 1
result = baskets_needed
return result
|
In a race, Tom ran 5 miles and John ran 8 miles. How many miles did they run in total? | def solve() -> int:
tom_distance = 5
john_distance = 8
total_distance = tom_distance + john_distance
result = total_distance
return result
|
arah bought 3 books at $8 each and 5 pens at $2 each. How much did Sarah spend? | def solve() -> int:
book_price = 8
pen_price = 2
num_books = 3
num_pens = 5
total_price = (book_price * num_books) + (pen_price * num_pens)
result = total_price
return result
|
Daniel ordered 3 3/4 pounds of tilapia that cost $7.00/pound. He also requested 2 pounds of shrimp that were $20.00 a pound. What was the total cost of Daniel's seafood order? | def solve() -> int:
tilapia_weight = 3 + 3/4
tilapia_cost_per_pound = 7.00
shrimp_weight = 2
shrimp_cost_per_pound = 20.00
tilapia_total_cost = tilapia_weight * tilapia_cost_per_pound
shrimp_total_cost = shrimp_weight * shrimp_cost_per_pound
total_cost = tilapia_total_cost + shrimp... |
In a music store, there are 50 CDs. Three-fourths of them are rock and the rest are pop. One-third of the pop CDs are instrumental. If there are 6 instrumental pop CDs, how many rock CDs are there? | def solve() -> int:
rock_cds = 3/4 * 50
pop_cds = 1/4 * 50
instrumental_pop_cds = 6
rock_cds = rock_cds - instrumental_pop_cds
result = rock_cds
return result
|
Student: Mary ran every morning for a total of 6 weeks. She ran initially for 5km every morning, and increased the distance by 2km each week. At the end of the 6th week, how many km had Mary run in total? | def solve() -> int:
initial_distance = 5
increase_distance = 2
weeks = 6
total_distance = initial_distance + (weeks - 1) * increase_distance
total_km = total_distance * weeks
result = total_km
return result
|
A woman earns a salary of $2000 per month. She spends $450 on rent, $300 on bills and pays her taxes of $1250 per month as well. Calculate the total amount of money the woman is left with at the end of the month. | def solve() -> int:
salary = 2000
tax = 1250
rent = 450
bills = 300
total_expense = tax + rent + bills
result = salary - total_expense
return result
|
Chloe, Lucas and Zoe played a card game and they scored 326 points in total. If Chloe scored 121 points and Lucas scored 11 more points than Chloe, how many points did Zoe score? | def solve() -> int:
lucas_points = 121 + 11
total_chloe_lucas = 121 + lucas_points
zoe_points = 326 - total_chloe_lucas
result = zoe_points
return result
|
Student: Nick has 15 black marbles and 16 green marbles. Beth has one fourth as many black marbles as green marbles. How many marbles does Beth have? | def solve() -> int:
black_marbles_nick = 15
green_marbles_nick = 16
black_marbles_beth = black_marbles_nick / 4
marbles_beth = black_marbles_beth + green_marbles_nick
result = marbles_beth
return result
|
Lucy works for a catering service. She works 10 hours a week making $12 an hour and 20 hours a week making $18 an hour. She pays $250 a month in expenses. What is her weekly paycheck after expenses? | def solve() -> int:
hours_1 = 10
rate_1 = 12
pay_1 = hours_1 * rate_1
hours_2 = 20
rate_2 = 18
pay_2 = hours_2 * rate_2
expenses = 250 / 4
total_pay = pay_1 + pay_2 - expenses
weekly_pay = total_pay / 4
result = weekly_pay
return result
|
Laura has 10 boxes of chocolates. Each box contains 18 pieces of chocolates and she wants to share them equally with her 5 friends. How many pieces of chocolates will Laura and each of her friends get? | def solve() -> int:
total_pieces = 10 * 18
number_of_people = 1 + 5
pieces_per_person = total_pieces // number_of_people
result = pieces_per_person
return result
|
Mr. Jones bought 4 large pizzas and 6 small pizzas for his family and friends. Each large pizza has 12 slices and each small pizza has 8 slices. He gave 3 slices to each person. How many people did he feed? | def solve() -> int:
large_slices = 4 * 12
small_slices = 6 * 8
total_slices = large_slices + small_slices
people = total_slices // 3
result = people
return result
|
If Grace weighs 18 pounds more than Anna, and Anna weighs one-sixth as much as Leah, and Leah weighs 120 pounds, how many pounds do Grace and Anna weigh together? | def solve() -> int:
leah_weight = 120
anna_weight = leah_weight / 6
grace_weight = anna_weight + 18
total_weight = anna_weight + grace_weight
result = total_weight
return result
|
Angel is going to the beach with her mom. They are buying snacks for the car trip and need to buy exactly $25 worth of snacks. If a bag of chips is $3 and a bottle of water is $2, what combination of snacks can they buy? | def solve() -> int:
total_cost = 25
price_of_chips = 3
price_of_water = 2
result = total_cost // (price_of_chips + price_of_water)
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.