question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
-Note: The following is a possible way to write the questions and the programs, but not the only way. You may use different variable names, expressions, or functions as long as they are clear and correct. Lisa sells 4 bracelets. She earns $24 from the sale. How much did she charge for each bracelet? | def solve() -> int:
bracelets = 4
earnings = 24
price = earnings / bracelets
result = price
return result
|
-Come up with **your own original questions and numbers**, do not copy from other sources or use the same numbers as the given question. === Lena loves to paint with different colors. She started with 100 tubes of paint in her art box. Her friends and relatives gave her some more tubes as presents. Her best friend gave... | def solve() -> int:
tubes = 100
tubes = tubes + 15
tubes = tubes + (15 - 3)
tubes = tubes + 8
tubes = tubes + (2 * 8)
tubes = tubes + (15 - 4)
result = tubes
return result
|
Alex works for $8.50 an hour and 25 hours a week at her job. She has been working for six months and has saved up $500. She is planning to buy a new bike for $300, but also wants to buy a new jacket for $50. How much money will she have left after buying both the bike and the jacket? | def solve() -> int:
hourly_wage = 8.50
weekly_hours = 25
months_worked = 6
total_hours_worked = weekly_hours * months_worked
total_earned = hourly_wage * total_hours_worked
money_left = total_earned - 500
bike_cost = 300
jacket_cost = 50
total_spent = bike_cost + jacket_cost
mone... |
John has 60 candies. He gave 1/3 of his candies to his friend, then gave half of what he gave to his friend to his little sister. How many candies did John give to his sister? | def solve() -> int:
candies = 60
friend_candies = candies / 3
sister_candies = friend_candies / 2
result = sister_candies
return result
|
Caleb owns a second washing machine and as an anniversary present he offered to do the laundry for his wife. He estimates that it takes him 15 minutes to wash one load of laundry in his old washing machine, but his new machine can finish a load in 10 minutes. If he has to wash 7 loads of laundry, where the new washing ... | def solve() -> int:
old_machine_time = 15
new_machine_time = 10
total_loads = 7
time_old_machine = total_loads * old_machine_time
time_new_machine = (total_loads // 2) * new_machine_time
total_time = time_old_machine + time_new_machine
result = total_time
return resu... |
Tia is baking cookies for a school fundraiser. She has 5 cups of flour, 2 cups of sugar, and 3 cups of chocolate chips. She needs 1 cup of flour, 0.5 cup of sugar, and 0.25 cup of chocolate chips for every 12 cookies. How many cookies can she bake with the ingredients she has, if she does not want to have any leftover ... | def solve() -> int:
flour = 5
sugar = 2
chips = 3
cookie_flour = 1
cookie_sugar = 0.5
cookie_chips = 0.25
cookies = 0
cookies_flour = (flour // cookie_flour) * 12
cookies_sugar = (sugar // cookie_sugar) * 12
cookies_chips = (chips // cookie_chips) * 12
cookies = min(coo... |
Jack, Jill and James have 600 candies in total. Jack has 7 times as many candies as Jill, and Jill has double the number of candies that James has. How many candies does Jack have? | def solve() -> int:
james_candies = 600 / (1 + 1 + 7)
jill_candies = james_candies * 2
jack_candies = jill_candies * 7
result = jack_candies
return result
|
Alex is sending 650 pounds of books that are packed into 10-pound boxes. If it costs $0.75 to transport each box of books, how much will it cost Alex to ship the books? | def solve() -> int:
num_books = 650
box_weight = 10
transport_cost = 0.75
num_boxes = num_books / box_weight
total_cost = num_boxes * transport_cost
result = total_cost
return result
|
Lucas has a collection of 12 comic books. He decides to lend some of them to his friends. He lends 1/4 of his comic books to Sam, 1/3 of the remaining comic books to Amy, and 2 comic books to Ben. How many comic books does Lucas have left? | def solve() -> int:
comic_books = 12
lent_to_sam = comic_books // 4
comic_books -= lent_to_sam
lent_to_amy = comic_books // 3
comic_books -= lent_to_amy
lent_to_ben = 2
comic_books -= lent_to_ben
result = comic_books
return result
|
Possible math questions and programs: At a book fair, 30% of the books are fiction and the rest are non-fiction. Fiction books cost $12 each, and non-fiction books cost $8 each. Alice bought one-third of the fiction books and two-fifths of the non-fiction books. If the total number of books was 300, how much money did ... | def solve() -> int:
fiction = 0.3 * 300
non_fiction = 0.7 * 300
fiction_bought = fiction / 3
non_fiction_bought = 2 * non_fiction / 5
cost_fiction = fiction_bought * 12
cost_non_fiction = non_fiction_bought * 8
cost_total = cost_fiction + cost_non_fiction
result = cost_total
r... |
If 6 people each mow 2 lawns a day, how many lawns will they have mowed in a 20-day period? | def solve() -> int:
people = 6
lawns_per_day = 2
days = 20
total_lawns = people * lawns_per_day * days
result = total_lawns
return result
|
Jane has 35 cats. She wants to divide them evenly among 5 cat shelters. How many cats should each shelter get? | def solve() -> int:
cats = 35
shelters = 5
cats_per_shelter = cats // shelters
result = cats_per_shelter
return result
|
Deon just bought his 37th pair of shoes, which is 5 more than 7 times as many pairs of shoes as Ian owns. Max has 4/5 as many pairs of shoes as Ian has. How many shoes does Max have? | def solve() -> int:
x = 37
y = 7 * (x - 5)
z = 4/5 * y
result = round(z)
return result
|
Student: Kenton operates an ice cream truck and charges $3 for each ice cream sold. How much money did he make if he sold 45 ice creams? | def solve() -> int:
price = 3
num_ice_creams = 45
total_money = price * num_ice_creams
result = total_money
return result
|
A new cafe has 20 customers in its first month. In the second month, the cafe offers a loyalty benefits program, leading to 15 more people joining, but 1/6th of them changed their minds the next day, and 1 person left due to poor quality. After offering a 30% discount, enrollment increased 7 times, but 4 people quit du... | def solve() -> int:
customers_month1 = 20
customers_month2 = customers_month1 + 15 - (15/6) - 1
customers_discount = customers_month2 * 7 - 4 + 10
customers_competitor = customers_discount / 2
customers_benefit = customers_competitor / 2
result = customers_benefit
... |
At a picnic, there are 20 baskets with 10 apples in each. If one basket out of every 5 baskets were taken away, how many apples are left? | def solve() -> int:
number_baskets = 20
apples_per_basket = 10
baskets_taken_away = number_baskets // 5
result = (number_baskets - baskets_taken_away) * apples_per_basket
return result
|
Student: In 5 years, Maria will be twice as old that Akeelah is now. If Maria is 33, how old is Akeelah now? | def solve() -> int:
maria_age = 33
akeelah_age = 0
akeelah_age = maria_age / 2
result = akeelah_age
return result
|
Student: Evan, Fiona, Greg, and Hannah are baking cookies for a charity sale. Evan made 24 cookies, Fiona made 30 cookies, Greg made 27 cookies, and Hannah made 21 cookies. They want to arrange the cookies in boxes that contain 6 cookies each. How many boxes can they fill up with the cookies they made? | def solve() -> int:
evan = 24
fiona = 30
greg = 27
hannah = 21
total = evan + fiona + greg + hannah
boxes = total // 6
result = boxes
return result
|
A recipe calls for 2 1/2 cups of flour. You only have a 1/4 measuring cup. How many scoops do you need to measure 2 1/2 cups of flour? | def solve() -> int:
required_measure = 2.5
measuring_cup =.25
number_of_scoops = required_measure / measuring_cup
result = number_of_scoops
return result
|
Possible additional questions are: Lisa buys a dozen apples for $6 and sells each apple for $0.75. She also buys a dozen oranges for $9 and sells each orange for $1. How much profit does she make in total? | def solve() -> int:
cost_apple = 6 / 12
sell_apple = 0.75
cost_orange = 9 / 12
sell_orange = 1
profit_apple = (sell_apple - cost_apple) * 12
profit_orange = (sell_orange - cost_orange) * 12
total_profit = profit_apple + profit_orange
result = total_profit
return result
|
Student: A truck carries 100 boxes. On the first day, it delivers 20 boxes. On the second day, it delivers twice as many boxes as on the first day. On the third day, 15 boxes are delivered. How many boxes remain to be delivered? | def solve() -> int:
boxes_carried = 100
boxes_delivered_1 = 20
boxes_delivered_2 = boxes_delivered_1 * 2
boxes_delivered_3 = 15
total_boxes_delivered = boxes_delivered_1 + boxes_delivered_2 + boxes_delivered_3
boxes_remaining = boxes_carried - total_boxes_delivered
result = boxes_remaining
... |
Bob has 35 pieces of string. If he cut each of them in half, how many pieces of string would he have? | def solve() -> int:
pieces_of_string = 35
halved_string = pieces_of_string * 2
result = halved_string
return result
|
Leo has a rectangular garden that is 12 meters long and 8 meters wide. He wants to fence the garden with a wire that costs $1.5 per meter. He also wants to plant some flowers along the fence that cost $0.5 per meter. How much will he spend on the fence and the flowers? | def solve() -> int:
length = 12
width = 8
wire_cost = 1.5
flower_cost = 0.5
perimeter = 2 * (length + width)
wire_cost_total = wire_cost * perimeter
flower_cost_total = flower_cost * perimeter
total_cost = wire_cost_total + flower_cost_total
result = total_cost
return result
|
Dave produces 380 widgets a week. If he produces 14.5% more over the next 3 weeks, how many widgets will he have produced in total? | def solve() -> int:
total = 0
for i in range(1, 4):
widgets = 380 * (1 + 0.145 * i)
total += widgets
result = total
return result
|
A box contains 80 green marbles and 60 blue marbles. What is the probability of selecting a blue marble randomly from the box? | def solve() -> int:
total_marbles = 80 + 60
probability_blue = 60/total_marbles
result = probability_blue
return result
|
Student: 1. How many lion cubs are born and how many lions will die in Londolozi after 2 years? | def solve() -> int:
cubs_per_year = 3
deaths_per_year = 2
years = 2
total_cubs = cubs_per_year * years
total_deaths = deaths_per_year * years
net_change = total_cubs - total_deaths
result = net_change
return result
|
Alice has 4 red apples and 3 green apples. She shares half of the total apples with her friend. How many apples does each of them get? | def solve() -> int:
total_apples = 4+3
shared_apples = total_apples/2
result = shared_apples
return result
|
At an ice hockey game, 8000 people are in the crowd. Of them, three-fifth are women and two-fifth are men. Of the women, two-thirds are students and of the men, one-fourth are students. How many students are in the crowd? | def solve() -> int:
women_in_crowd = 8000*3/5
men_in_crowd = 8000*2/5
women_students = women_in_crowd*2/3
men_students = men_in_crowd*1/4
total_students = women_students + men_students
result = total_students
return result
|
A photographer charges $200 for the session fee and $10 per photo. He took photos for 5 clients in one week, each with different number of photos. The first client ordered 20 photos, the second 15, the third 25, the fourth 18, and the fifth 22. How much did he earn in total from these five clients? | def solve() -> int:
photos1 = 20 * 10
photos2 = 15 * 10
photos3 = 25 * 10
photos4 = 18 * 10
photos5 = 22 * 10
total1 = 200 + photos1
total2 = 200 + photos2
total3 = 200 + photos3
total4 = 200 + photos4
total5 = 200 + photos5
total_earnings = total1 + total2 + total3... |
Student: In a restaurant, the drink menu has 10 different types of drinks and the food menu has 15 different types of dishes. If a customer orders one drink and one dish, how many possible different orders can a customer make? | def solve() -> int:
drinks = 10
dishes = 15
orders = drinks * dishes
result = orders
return result
|
Student: A train journey lasts 8 hours and goes at a maximum speed of 120 km/h. However, the train only travelled at a speed of 90 km/h during its last hour. How far did the train travel in total? | def solve() -> int:
time = 8
max_speed = 120
last_hour_speed = 90
total_distance = (time - 1) * max_speed + last_hour_speed
result = total_distance
return result
|
In a park, there are twice as many dogs as cats. If there are 24 cats, and each cat catches 3 mice a day, and each dog catches 5 mice a day, how many mice are caught in total by all the cats and dogs in the park in a week of 7 days? | def solve() -> int:
cats = 24
dogs = 2 * cats
cats_mice_per_day = 3
dogs_mice_per_day = 5
days_per_week = 7
cats_mice_per_week = cats * cats_mice_per_day * days_per_week
dogs_mice_per_week = dogs * dogs_mice_per_day * days_per_week
total_mice_per_week = cats_mice_per_week + dog... |
Emma had 400 ml of water. She poured out 45% of it. How many ml of water is left in the container? | def solve() -> int:
water_volume = 400
poured_out = water_volume * 0.45
left = water_volume - poured_out
result = left
return result
|
7. Maya bought 10 boards for $40 each. If she sells each of them for $20, how much money will she get back? | def solve() -> int:
boards = 10
price_bought = 40
price_sold = 20
revenue = boards * price_sold
spent = boards * price_bought
profit = revenue - spent
result = profit
return result
|
An airplane can carry 250 passengers. How many passengers can it carry in 4 flights? | def solve() -> int:
num_flights = 4
passengers_per_flight = 250
total_passengers = num_flights * passengers_per_flight
result = total_passengers
return result
|
Student: A car travels 30 miles per gallon of gas. If it travels 100 miles on Monday and 200 miles on Friday, how many gallons of gas did it use in total? | def solve() -> int:
monday_miles = 100
friday_miles = 200
miles_per_gallon = 30
total_miles = monday_miles + friday_miles
total_gallons = total_miles / miles_per_gallon
result = total_gallons
return result
|
Student: Sarah has $1200 in her bank account. She withdraws 25% and then deposits 50% of what she withdrew. How much money does she have left in her account? | def solve() -> int:
balance = 1200
withdrawal = balance * 0.25
deposit = withdrawal * 0.5
new_balance = balance - withdrawal + deposit
result = new_balance
return result
|
am is 6 years older than his brother Jack. In two year’s time, Jack will be 5/6 Sam's age. How old is Jack now? | def solve() -> int:
sam = 0
jack = 0
jack = (sam - 6) * 6 // 5 + 2
result = jack
return result
|
A store sells candy bars for $1.20 each. Julia spent $18 buying candy bars. How many candy bars did she buy? | def solve() -> int:
num_bars = 18/1.20
result = int(num_bars)
return result
|
A company has a total of 8000 products in stock, of which 40% are gadgets and the rest are toys. If the company sells 1300 gadgets, what percentage of the remaining products will be toys? | def solve() -> int:
total_products = 8000
gadgets_percentage = 40
toys_percentage = 100 - gadgets_percentage
gadgets_sold = 1300
remaining_products = total_products - gadgets_sold
toys_remaining_percentage = (toys_percentage * remaining_products) / total_products
result = toys_rema... |
If 25 percent of the flowers in a garden are roses and there are 70 roses, what is the total number of flowers in the garden? | def solve() -> int:
total_roses = 70
percent_roses = 25
total_flowers = total_roses / (percent_roses/100)
result = total_flowers
return result
|
Amanda can fold 10 shirts per hour, and her brother Connor can fold 8 shirts per hour. They need to fold 120 shirts for their family. If they work together, how long will it take them to fold all the shirts? | def solve() -> int:
amanda_rate = 10
connor_rate = 8
total_shirts = 120
combined_rate = amanda_rate + connor_rate
time_to_fold_all_shirts = total_shirts / combined_rate
result = time_to_fold_all_shirts
return result
|
A company has 120 employees. If 30% of the employees are women, how many male employees are there? | def solve() -> int:
total_employees = 120
female_percent = 0.3
female_employees = total_employees * female_percent
male_employees = total_employees - female_employees
result = male_employees
return result
|
A class has 35 students. If there are 7 teams of equal size, how many students are in each team? | def solve() -> int:
num_students = 35
num_teams = 7
students_per_team = num_students // num_teams
result = f'{students_per_team} students per team'
result = students_per_team
return result
|
Tom has $20 more than John. If John has $x, how much does Tom have? | def solve() -> int:
john_money = 50
tom_money = john_money + 20
result = tom_money
return result
|
There were 2 libraries with 300 and 200 books respectively, and they decided to combine their collections. After a book fair, 25% of the books were sold, and 20 books were returned to one library. How many books were left in the collection? | def solve() -> int:
library1_books = 300
library2_books = 200
total_books = library1_books + library2_books
sold_books = total_books * 0.25
remaining_books = total_books - sold_books
library1_books = remaining_books - 20
library2_books = remaining_books - library1_books
... |
Student: In a library, there are 10 books in each shelf with 5 shelves per row. How many books are in a row? | def solve() -> int:
num_books_per_shelf = 10
num_shelves_per_row = 5
num_books_per_row = num_books_per_shelf * num_shelves_per_row
result = num_books_per_row
return result
|
At a museum, there are 8 interactive exhibits that can be experienced at a time. Every group spends 10 minutes at an exhibit, and then another group of visitors comes in. How many groups can experience the exhibits in 2 hours? | def solve() -> int:
exhibit_capacity = 8
time_per_exhibit = 10
total_time = 2 * 60
groups = total_time // time_per_exhibit
result = groups // exhibit_capacity
return result
|
If Kelly can bike 12 miles in 1 hour, how long will it take her to bike 40 miles at the same speed? | def solve() -> int:
speed = 12
distance = 40
time = distance / speed
result = time
return result
|
Mary, Lucy, and Emily are cooking pancakes. Mary cooked 3/5 of a 24-pancake mix, Lucy cooked 4/7 of the amount of Mary, and Emily cooked 1/2 of the amount of Lucy. How many more pancakes does Emily need to cook to make the same number of pancakes as Mary? | def solve() -> int:
mary_pancakes = (3/5) * 24
lucy_pancakes = (4/7) * mary_pancakes
emily_pancakes = (1/2) * lucy_pancakes
difference = mary_pancakes - emily_pancakes
result = difference
return result
|
You go to a coffee shop and order 2 drinks and a pastry. If each drink costs $4 and the pastry costs $3, but you have a 25% coupon for one of the drinks, what is your total cost after tax at 8%? | def solve() -> int:
drink_cost = 4
pastry_cost = 3
num_drinks = 2
discount_percent = 0.25
tax_percent = 0.08
discounted_drink_cost = drink_cost - (drink_cost * discount_percent)
subtotal = (discounted_drink_cost * num_drinks) + pastry_cost
tax = subtotal * tax_percent
total_cost = su... |
Steve needs to buy guinea pig food to last two weeks. He knows that each guinea pig eats 10 grams a day. His baby guinea pigs eat half of what an adult guinea pig eats. If he has 3 adult guinea pigs and 6 baby guinea pigs, how many grams of guinea pig food does he need to buy? | def solve() -> int:
adult_guinea_pigs = 3
baby_guinea_pigs = 6
food_per_day_adult = 10
food_per_day_baby = food_per_day_adult / 2
total_food_per_day = (adult_guinea_pigs * food_per_day_adult) + (baby_guinea_pigs * food_per_day_baby)
days = 14
total_food_needed = total_foo... |
A marathon is 26.2 miles long. A runner wants to complete the marathon in 4 hours. How fast does the runner need to run each mile? | def solve() -> int:
marathon_distance = 26.2
time_to_complete = 4
speed_per_mile = marathon_distance / time_to_complete
result = speed_per_mile
return result
|
Kevin is collecting stamps and wants to buy some rare ones from an online auction. He has a budget of $150 and he finds three stamps that he likes. The first stamp costs $45 and has a shipping fee of $5. The second stamp costs $60 and has a shipping fee of $7. The third stamp costs $40 and has a shipping fee of $6. If ... | def solve() -> int:
budget = 150
stamp1_cost = 45
stamp1_shipping = 5
stamp2_cost = 60
stamp2_shipping = 7
stamp3_cost = 40
stamp3_shipping = 6
total_cost = stamp1_cost + stamp1_shipping + stamp2_cost + stamp2_shipping + stamp3_cost + stamp3_shipping
money_left = budget ... |
Student: A company produces 8000 items per month. Their costs per item are $2.50 for raw materials, $5 for labor, and $1 for other expenses. What is their monthly production cost? | def solve() -> int:
items = 8000
raw_materials_cost = 2.50
labor_cost = 5
other_expenses_cost = 1
total_cost = items * (raw_materials_cost + labor_cost + other_expenses_cost)
result = total_cost
return result
|
Maria, Bob, and Tom each shared a $90 award for their hard work in the math club. Tom got quadruple the amount Maria received, and Bob got half of what Tom received. How much did Bob earn? | def solve() -> int:
MariaEarned = 90 / (1 + 4 + (1/2))
TomEarned = 4 * MariaEarned
BobEarned = 1/2 * TomEarned
result = BobEarned
return result
|
Mr. Riley has 105 pieces of paper. He gave 1/6 of them to Mr. Paul and kept the rest in storage. How many pieces of paper did Mr. Riley keep? | def solve() -> int:
num_of_give = 105 * 1/6
result = 105 - num_of_give
return result
|
Sophia and her friend Carter are having a jumping competition using a trampoline. Sophia jumps 80 times in the first round, while Carter jumps 2/3 as many times as Sophia jumped. In the second round, Carter jumps 30 more times than Sophia. If Sophia managed to jump Abby bought a bag of marbles. She kept 2/5 of the marb... | def solve() -> int:
sophia_first_round = 80
carter_first_round = sophia_first_round * 2/3
carter_second_round = sophia_first_round + 30
total_jumps = sophia_first_round + carter_first_round + carter_second_round
abby_marbles = total_jumps * 2/5
result = abby_marbles - 30
return result
|
Student: At a store, each shirt costs $20 and each pair of pants cost $30. If Ali spent a total of $90, how many items did he buy? | def solve() -> int:
shirt_cost = 20
pants_cost = 30
total_amount = 90
num_shirts = total_amount // shirt_cost
remaining_amount = total_amount - (num_shirts * shirt_cost)
num_pants = remaining_amount // pants_cost
total_items = num_shirts + num_pants
result = total_items
return resul... |
Student: Floyd has 16 colorful gems. He uses 4 of them to make a necklace. What fraction of the gems does he still have? | def solve() -> int:
gems = 16
used = 4
remaining = gems - used
result = remaining / gems
return result
|
A person wants to buy a shirt that costs $45. If the sales tax is 8% and he has a coupon which gives him a discount of 10% on the selling price, what is the final cost of the shirt? | def solve() -> int:
shirt_cost = 45
sales_tax = 0.08*shirt_cost
selling_price = shirt_cost + sales_tax
discount = 0.1*selling_price
selling_price -= discount
final_cost = selling_price + sales_tax
result = final_cost
return result
|
A box of 16 cupcakes costs $24 and a box of 12 cupcakes costs $18. If a bakery wants to make a profit of $4 per box, how much should they charge for a box of 15 cupcakes? | def solve() -> int:
prof_box_cost = 4
c1 = 24 / 16
c2 = 18 / 12
avg_cost = (c1 + c2) / 2
box_cost = avg_cost + prof_box_cost
per_cupcake = box_cost / 15
result = per_cupcake
return result
|
A train travels at a constant speed of 60 kilometers per hour. If it takes 2 hours and 15 minutes to reach its destination, how far is the destination from the starting point? | def solve() -> int:
from decimal import Decimal
time = Decimal(2) + Decimal(15) / Decimal(60)
distance = time * Decimal(60)
result = distance
return result
|
If a square has an area of 49 sq. units, what is the length of its side? | def solve() -> int:
area = 49
side = area ** 0.5
result = side
return result
|
Lily and her friends decide to have a picnic. 3 of her friends bring sandwiches, each having four times as many sandwiches as Lily has. Another four of her friends bring one drink each. If Lily brings 2 sandwiches, what's the total number of sandwiches they have for the picnic? | def solve() -> int:
lily_sandwiches = 2
friend_sandwiches = lily_sandwiches * 4
total_sandwiches = lily_sandwiches + friend_sandwiches + friend_sandwiches + friend_sandwiches
result = total_sandwiches
return result
|
Possible new questions and programs are: A recipe for a cake requires 3 cups of flour, 2 cups of sugar, 4 eggs, and 1/4 cup of oil. Bianca has 5 cups of flour, 3 cups of sugar, 6 eggs, and 1/2 cup of oil in her kitchen. How many cakes can she make with the ingredients she has, assuming she uses them all up? | def solve() -> int:
flour_cakes = 5 // 3
sugar_cakes = 3 // 2
egg_cakes = 6 // 4
oil_cakes = 1/2 / (1/4)
cakes = min(flour_cakes, sugar_cakes, egg_cakes, oil_cakes)
result = cakes
return result
|
Possible questions and programs: Ms. Bella sells bracelets and necklaces at a craft fair. She makes $8 profit for each bracelet and $12 profit for each necklace. If she sold 35 bracelets and 25 necklaces on Saturday, how much profit did she make in total? | def solve() -> int:
profit_bracelet = 8
profit_necklace = 12
bracelets_sold = 35
necklaces_sold = 25
total_profit = profit_bracelet * bracelets_sold + profit_necklace * necklaces_sold
result = total_profit
return result
|
Emily is selling candy bars for her cheerleading team's fundraiser. If she sells 40% more candy bars on Tuesday than she sold on Monday, and sells a total of 220 candy bars in both days, how many did she sell on Monday? | def solve() -> int:
x = 220 / 2.4
result = round(x, 2)
return result
|
A class of 30 students is divided into 3 groups for a project. Each group has an equal number of boys and girls. If there are 18 boys and 12 girls in the class, how many boys are in each group? | def solve() -> int:
group_size = 30 // 3
boys_per_group = 18 // 3
result = boys_per_group
return result
|
A pet store has 100 bags of dog food. After 15 minutes, 1/5 of the total number of bags have been sold. After another hour, four times the number of bags sold in the first 15 minutes are sold. How many bags of dog food are left unsold? | def solve() -> int:
total_bags = 100
sold_first_15 = total_bags // 5
remaining_bags = total_bags - sold_first_15
sold_next_hour = 4 * sold_first_15
remaining_bags -= sold_next_hour
result = remaining_bags
return result
|
A car tire weighs five times the mass of a bike tire. If a car tire also weighs 7 kgs more than a motorcycle tire and a motorcycle tire weighs 10 kgs, calculate the total weight of a container with 50 tires of each type. | def solve() -> int:
bike_tire_weight = 10
car_tire_weight = 5 * bike_tire_weight
motorcycle_tire_weight = bike_tire_weight + 7
total_weight = (50 * bike_tire_weight) + (50 * car_tire_weight) + (50 * motorcycle_tire_weight)
result = total_weight
return result
|
A train leaves a station and travels at an average speed of 70 mph for 3 hours. How far has it travelled? | def solve() -> int:
speed = 70
time = 3
distance = speed * time
result = distance
return result
|
Tim has collected 340 cards. He wants to divide his cards into 7 groups that have an equal number of cards. How many cards will be in each group? | def solve() -> int:
total_cards = 340
num_groups = 7
cards_per_group = total_cards // num_groups
result = cards_per_group
return result
|
If 5 meters of fabric cost $30, how much will 10 meters of the same fabric cost? | def solve() -> int:
unit_cost = 30/5
total_cost = 10 * unit_cost
result = total_cost
return result
|
James wants to buy a ticket to Paris. The round-trip fare is $1200.10. If he plans to stay there for 9 days, what is the cost of each day of his trip (including the cost of the ticket)? | def solve() -> int:
fare = 1200.10
stay_length = 9
total_trip_cost = fare * 2
cost_per_day = total_trip_cost/stay_length
result = cost_per_day
return result
|
The radius of a circle is 36 cm. What is the circumference of the circle? | def solve() -> int:
radius = 36
circumference = 2 * 3.14 * radius
result = circumference
return result
|
Student: If a restaurant's total sales tax is 8%, what is the actual cost of a $28 meal after tax has been added? | def solve() -> int:
meal_cost = 28
tax_rate = 0.08
total_cost = meal_cost + meal_cost * tax_rate
result = total_cost
return result
|
Michael wants to build a new laboratory. It will cost $15 per square foot of space and he needs 50 square feet for every scientist who will work in the lab. He wants the lab to accommodate 6 scientists. Construction will cost 5 times more than the land. If his partner covers 80% of the cost, how much will Michael spend... | def solve() -> int:
scientists = 6
square_feet_per_scientist = 50
total_square_feet = scientists * square_feet_per_scientist
cost_per_square_foot = 15
land_cost = total_square_feet * cost_per_square_foot
construction_cost = 5 * land_cost
total_cost = land_cost + construction_cost
partner... |
Emily reads 50 books a year. If she only reads 30 books in the first year, how many books will she have read in 12 years? | def solve() -> int:
books_per_year = 50
books_first_year = 30
years = 12
books_total = books_first_year + (books_per_year * (years - 1))
result = books_total
return result
|
Jake can lift 50 kg weights 10 times in 5 minutes. If he wants to lift 100 kg, how many times will he need to lift in 10 minutes? | def solve() -> int:
weights_lifted = 50
times_lifted = 10
time_taken = 5
weights_to_lift = 100
time_available = 10
weights_per_minute = weights_lifted / time_taken
times_needed = (weights_to_lift / weights_per_minute) * (time_available / time_taken)
result = times_needed
... |
A jar contains 32 coins, 12 of which are quarters and 20 of which are dimes. Eight quarters are taken out and then four dimes are put in. How many cents are in the jar? | def solve() -> int:
quarters = 12
dimes = 20
quarters = quarters - 8
dimes = dimes + 4
quarters = quarters * 25
dimes = dimes * 10
cents = quarters + dimes
result = cents
return result
|
A pizza costs £10 plus £1.50 per topping. Joe ordered a pizza with 3 toppings. How much did he spend? | def solve() -> int:
pizza_cost = 10 + (1.5 * 3)
result = pizza_cost
return result
|
At the bakery, Jason and Molly have 90 cupcakes. Jason has twice as many cupcakes as Molly and 6 more cupcakes than Molly. How many cupcakes does Molly have? | def solve() -> int:
jason_cupcakes = 90
molly_cupcakes = jason_cupcakes / 2
jason_cupcakes = molly_cupcakes + 6
result = molly_cupcakes
return result
|
David collects stamps from different countries. He has 120 stamps from Canada, 80 stamps from France, and 60 stamps from Japan. He wants to arrange them in an album with 12 stamps per page. How many pages will he need for his album? How many stamps will he have left over? | def solve() -> int:
total_stamps = 120 + 80 + 60
pages = total_stamps // 12
leftover = total_stamps % 12
result = (pages, leftover)
return result
|
If a basketball player scores an average of 25 points per game for the first 40 games, and an average of 30 points per game for the next 20 games how many points did he score in total? | def solve() -> int:
avg_points_first_40_games = 25
avg_points_last_20_games = 30
num_first_40_games = 40
num_last_20_games = 20
total_points = (avg_points_first_40_games * num_first_40_games) + (avg_points_last_20_games * num_last_20_games)
result = total_points
return result
|
A car drives 60 miles in 1 hour. How long does it take to drive 240 miles? | def solve() -> int:
d = 240
s = 60
t = d / s
result = t
return result
|
Susan works at a fabric store. She needs to cut 12 pieces of fabric that are each 7.5 feet long. In total, how many yards of fabric does she need to cut? | def solve() -> int:
feet_required = 12 * 7.5
yards_required = feet_required / 3
result = yards_required
return result
|
Alisha has 12 cubes of apple. She eats 3 cubes of apple and gives the remaining cubes equally among 4 friends. How many cubes of apple does each person get? | def solve() -> int:
cubes_of_apple = 12
eaten_cubes = 3
number_of_people = 4
cubes_of_apple = cubes_of_apple - eaten_cubes
cubes_of_apple = cubes_of_apple / number_of_people
result = cubes_of_apple
return result
|
A rectangular garden has a length of 20 feet and a width of 15 feet. Tanya wants to plant flowers along the perimeter of the garden, leaving a gap of 2 feet at each corner. How many flowers can she plant if each flower needs a space of 6 inches? | def solve() -> int:
perimeter = (20 + 15) * 2
gaps = 2 * 4
planting = perimeter - gaps
space = 0.5
flowers = int(planting / space)
result = flowers
return result
|
A store is currently having a sale where everything is 25% off. If a customer wants to buy a $50 item, how much will they pay? | def solve() -> int:
original_price = 50
discount_percentage = 0.25
discounted_price = original_price * (1 - discount_percentage)
result = discounted_price
return result
|
Student: A store offered a 20% discount on a $100 product. How much did the customer pay after discount? | def solve() -> int:
original_price = 100
discount_rate = 0.2
discount_amount = original_price * discount_rate
final_price = original_price - discount_amount
result = final_price
return result
|
A box contains 20 red balls and 15 blue balls. Bob randomly picks 4 balls from the box without replacement. What is the probability that he gets exactly 2 red balls and 2 blue balls? | def solve() -> int:
from math import comb
possible_outcomes = comb(35, 4)
favorable_outcomes = comb(20, 2) * comb(15, 2)
probability = favorable_outcomes / possible_outcomes
from fractions import Fraction
result = Fraction(probability).limit_denominator()
return result
|
David enjoys cycling and can cycle at an average speed of 16 miles per hour. After a month of training, he can cycle 25% faster. How much faster was he cycling each week? | def solve() -> int:
avg_speed = 16
increase_percent = 25
increase_factor = 1 + increase_percent/100
new_speed = avg_speed * increase_factor
days_in_month = 30
hours_in_day = 24
total_hours = days_in_month * hours_in_day
total_distance = avg_speed * total_hours
new_total_distance = ne... |
A group of six friends went to a restaurant. The bill came out to $96 total. If they decide to split it evenly, how much will each person pay? | def solve() -> int:
num_people = 6
total_cost = 96
cost_per_person = total_cost / num_people
result = cost_per_person
return result
|
On a map, the distance between two cities is 10 cm. The actual distance between the two cities is 500 km. What is the scale of the map? | def solve() -> int:
map_distance = 10
actual_distance = 500000
scale = actual_distance / (map_distance * 100000)
result = scale
return result
|
A group of 15 people shared 6 pizzas and each pizza can be sliced into 8 equally sized pieces. How many pieces of pizza will each person have? | def solve() -> int:
people = 15
total_slices = 6 * 8
slices_per_person = total_slices / people
result = slices_per_person
return result
|
A pizza with a 12-inch diameter is cut into 8 equal slices. What is the area of one slice? | def solve() -> int:
diameter = 12
radius = diameter/2
num_slices = 8
slice_area = (3.14*radius**2)/num_slices
result = slice_area
return result
|
A recipe calls for 2 and 1/2 tablespoons of sugar. How many teaspoons is that? | def solve() -> int:
num_tablespoons = 2.5
num_teaspoons = num_tablespoons*3
result = num_teaspoons
return result
|
Tracy can paint a house in 8 hours. If she paints for 3 hours every day, how many days will it take her to finish the house? | def solve() -> int:
hours_per_day = 3
hours_to_finish = 8
days_to_finish = hours_to_finish/hours_per_day
result = days_to_finish
return result
|
A flower shop sells roses for $1.50 each, tulips for $1.00 each, and daisies for $0.50 each. They have 200 roses, 150 tulips, and 100 daisies in stock. On Valentine's Day, they sold 80% of their roses, 60% of their tulips, and 40% of their daisies. On a regular day, they sell 50% of their roses, 30% of their tulips, an... | def solve() -> int:
valentine_roses = 1.50 * 200 * 0.80
valentine_tulips = 1.00 * 150 * 0.60
valentine_daisies = 0.50 * 100 * 0.40
regular_roses = 1.50 * 200 * 0.50
regular_tulips = 1.00 * 150 * 0.30
regular_daisies = 0.50 * 100 * 0.20
valentine_sales = valentine_roses + valentine_tulips + v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.