question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
Jake is a bird-watcher who enjoys watching birds at the park for one hour each. If he spent a total of 5 hours at the park on Tuesday, and then on Wednesday he spent three times as long at the park as he did on Tuesday, how many hours in total did Jake spend watching birds during these two days? | def solve() -> int:
hours_on_tuesday = 5
hours_on_wednesday = 3 * hours_on_tuesday
total_hours = hours_on_tuesday + hours_on_wednesday
result = total_hours
return result
|
Student: Lucas had $25 and his brother had $18. They went to a pet store where they bought a fish for $12 and a fish bowl for $15. They also got some fish food and gravel for $4 and $3 respectively. The tax was 8%. How much change should they have received in total? | def solve() -> int:
lucas_money = 25
brother_money = 18
fish_price = 12
fish_bowl_price = 15
fish_food_price = 4
gravel_price = 3
tax_rate = 0.08
total_cost = fish_price + fish_bowl_price + fish_food_price + gravel_price
total_tax = total_cost * tax_rate
total_money = lucas_money... |
If the total cost of 5 pens and 3 notebooks is $23 and the cost of a pen is $2, what is the cost of a notebook? | def solve() -> int:
total_cost = 23
pens = 5
notebooks = 3
pen_cost = 2
notebook_cost = (total_cost - (pens * pen_cost))/notebooks
result = notebook_cost
return result
|
ven has 8 blocks, each block has 6 sides. How many sides does Steven have in total? | def solve() -> int:
number_blocks = 8
sides_per_block = 6
result = number_blocks * sides_per_block
return result
|
2. Jane purchased five times the amount of items Bob did. If Jane purchased 48 items, how many items did Bob purchase? | def solve() -> int:
item_Bob_purchased = 48 / 5
result = item_Bob_purchased
return result
|
am drives 60 miles per hour. How long will it take him to drive 180 miles? | def solve() -> int:
distance = 180
speed = 60
time = distance / speed
result = time
return result
|
Mark has 15 books and wants to buy 5 times more for his personal library. After arranging the books on the shelf, he divides them into three sections. How many books are in each pile? | def solve() -> int:
books = 15
additional_books = 5 * books
total_books = books + additional_books
pile_size = total_books / 3
result = pile_size
return result
|
Student: A store sells 5 items for $20. If someone buys 12 items, how much will they pay? | def solve() -> int:
price_per_item = 20
number_of_items = 12
total_price = price_per_item * number_of_items
result = total_price
return result
|
Student: There were 10 students in a class, each student had to pay $35 for a field trip. How much did the 10 students pay in total? | def solve() -> int:
num_students = 10
cost_per_student = 35
total_cost = num_students * cost_per_student
result = total_cost
return result
|
In a swimming race, George swam 100 meters. Hannah swam 10 percent faster than George and Ian swam 25 percent slower than Hannah. Compared to George, how much slower did Ian swim? | def solve() -> int:
hannah_speed = 100 * (1 + 0.1)
ian_speed = hannah_speed * (1 - 0.25)
difference = ian_speed - 100
result = difference
return result
|
At the Book Lovers' Emporium, 1/2 of book lovers prefer buying e-books to physical books. If there are 600 book lovers, how many book lovers buy physical books? | def solve() -> int:
book_lovers = 600
ebook_lovers = book_lovers / 2
physical_book_lovers = book_lovers - ebook_lovers
result = physical_book_lovers
return result
|
The price of a pair of shoes is $60, which is 30% off the original price. What was the original price of the shoes? | def solve() -> int:
original_price = 60 / (1 - 0.3)
result = original_price
return result
|
ome possible questions are: David is cutting a rectangular cake into equal pieces. He makes 12 vertical cuts and 9 horizontal cuts. How many pieces of cake does he get? | def solve() -> int:
vertical_cuts = 12
horizontal_cuts = 9
intersections = vertical_cuts * horizontal_cuts
result = intersections
return result
|
After their hiking trip, Tom and Emily want to count how many miles they walked. For each trail, they walked 2 miles for every 100 feet of elevation gain. If they hiked 4 trails with elevations of 500 feet, 800 feet, 1200 feet, and 1500 feet, how many miles did they walk? | def solve() -> int:
elevation1 = 500
elevation2 = 800
elevation3 = 1200
elevation4 = 1500
miles1 = (elevation1 / 100) * 2
miles2 = (elevation2 / 100) * 2
miles3 = (elevation3 / 100) * 2
miles4 = (elevation4 / 100) * 2
total_miles = miles1 + miles2 + miles3 + miles4
... |
A bakery sells 24 cupcakes per day. If they are open for 6 days in a week, how many cupcakes do they sell in a week? | def solve() -> int:
cupcakes_per_day = 24
days_open_per_week = 6
cupcakes_per_week = cupcakes_per_day * days_open_per_week
result = cupcakes_per_week
return result
|
An amusement park has 3 types of tickets for a ride: a full-day pass for $60, a half-day pass for $40, and a single-ride pass for $10. If a family of 4 wants to go on this ride, and they each want a full-day pass, what is the total cost? | def solve() -> int:
full_price = 60
half_price = 40
single_price = 10
num_family_members = 4
total_cost = full_price * num_family_members
result = total_cost
return result
|
Ella has a bag of marbles. She has 12 red marbles, 8 blue marbles, and 10 green marbles. She randomly picks one marble and puts it back. She repeats this 20 times. How many times does she expect to pick a green marble? | def solve() -> int:
probability = 10 / (12 + 8 + 10)
expected = probability * 20
result = expected
return result
|
amuel has a bookshelf with 25 books. He gave away 1/5 of his books to his friend and donated 1/4 of the remaining books to charity. How many books does he have left? | def solve() -> int:
books = 25
given_to_friend = books * 1/5
remaining_books = books - given_to_friend
donated_to_charity = remaining_books * 1/4
remaining_books -= donated_to_charity
result = remaining_books
return result
|
Amy has a rectangular pool with a length of 20 feet and a width of 10 feet. If she increases the length of the pool by 5 feet and decreases the width by 2 feet, what is the resulting area of the pool? | def solve() -> int:
original_length = 20
original_width = 10
new_length = original_length + 5
new_width = original_width - 2
new_area = new_length * new_width
result = new_area
return result
|
Student: A train travels 80 miles in 1 hour and 20 minutes. What is its speed in miles per hour? | def solve() -> int:
distance = 80
time = 1.33
speed = distance / time
result = speed
return result
|
Student: A factory produces 120 items in 10 minutes, how many items can it produce in 5 minutes? | def solve() -> int:
items_produced_10_min = 120
time_10_min = 10
time_5_min = 5
items_produced_5_min = items_produced_10_min * (time_5_min / time_10_min)
result = items_produced_5_min
return result
|
Mandy bought a few boxes of pencils at an office supply store. Each box contains 20 pencils, and each pencil weighs 8 grams. Mandy puts all her pencils into a single bag and weighs it on a digital scale. The scale reports that the bag of pencils weighs 192 grams. How many boxes of pencils were in the bag? | def solve() -> int:
pencils_in_box = 20
pencil_weight = 8
total_weight = 192
boxes = total_weight / (pencils_in_box * pencil_weight)
result = boxes
return result
|
Student: Maria earns $70 daily in her job. 8% of her money is deducted as taxes. How much money will Maria have earned after taxes after 40 days of work? | def solve() -> int:
daily_earnings = 70
tax_rate = 0.08
days_worked = 40
total_earnings = daily_earnings * days_worked * (1 - tax_rate)
result = total_earnings
return result
|
A charity ran a fundraising event and collected 240 dollars from 20 people. If they want to distribute this money evenly between 10 different charities, how much money will each charity receive? | def solve() -> int:
collected = 240
people = 20
charities = 10
money_each = collected / charities
result = money_each
return result
|
Student: Max is buying pet food for his 8 dogs. They each need 8lbs of pet food. How many lbs of pet food does Max need to buy overall? | def solve() -> int:
num_dogs = 8
pet_food_per_dog = 8
total_pet_food = num_dogs * pet_food_per_dog
result = total_pet_food
return result
|
Olivia is a house cleaner who charges per room. Each week she spends $30 on cleaning supplies and cleans 4 rooms, charging $50 per room. Last week she also made extra money cleaning an additional room for $60. How much profit did Olivia earn last week? | def solve() -> int:
cleaning_supplies = 30
num_rooms = 4
room_charge = 50
extra_room_charge = 60
total_income = (num_rooms * room_charge) + extra_room_charge
total_expenses = cleaning_supplies
profit = total_income - total_expenses
result = profit
return result
|
Emma wants to buy a gaming console which costs $600. Apart from that, she also wants to buy a controller worth 1/4 as much as the console. If her brother wants to buy the same items as Emma, how much will they both have to pay in total? | def solve() -> int:
console_price = 600
controller_price = console_price / 4
total_price = console_price + controller_price
result = total_price
return result
|
Student: A store has a sale where everything is 25% off. If a jacket normally costs $60, what is the sale price? | def solve() -> int:
normal_price = 60
discount_rate = 0.25
sale_price = normal_price * (1 - discount_rate)
result = sale_price
return result
|
A recipe calls for 3/4 cup of sugar to make 24 cookies. How much sugar is needed to make 36 cookies? | def solve() -> int:
sugar_per_cookie = 0.75 / 24
num_cookies = 36
total_sugar = sugar_per_cookie * num_cookies
result = total_sugar
return result
|
6. There are 60 pieces of candy in a jar and 270 more were added. How many pieces of candy are there now? | def solve() -> int:
candies = 60
added = 270
total_candies = candies + added
result = total_candies
return result
|
Student: Anna has 10 more cookies than Bob. Ella has one eighth as many cookies as Bob. If Ella has 2 cookies, how many cookies does Anna have? | def solve() -> int:
bob_cookies = 2 / 8
anna_cookies = bob_cookies + 10
result = anna_cookies
return result
|
Student: Tina bought 3 shirts and 4 pairs of trousers. Each shirt cost £25 and each pair of trousers cost £35. How much money did Tina spend in total? | def solve() -> int:
shirts = 3
shirt_price = 25
trousers = 4
trouser_price = 35
shirt_cost = shirts * shirt_price
trouser_cost = trousers * trouser_price
total_cost = shirt_cost + trouser_cost
result = total_cost
return result
|
Mark went to the gym and took a personal training session, attended a yoga class, and used the sauna. The training session was $60 and the yoga class was $20. Mark’s total bill was three times the cost of the yoga class. How much did Mark pay for the sauna? | def solve() -> int:
training_session = 60
yoga_class = 20
total_bill = 3 * yoga_class
sauna = (total_bill - training_session) / 2
result = sauna
return result
|
Kai is a lifeguard. He's supposed to swim 10 laps in a pool that's 25 meters long. If Kai skips 2 laps, how far did he actually swim in the pool? | def solve() -> int:
laps_swam = 10 - 2
distance_swam = laps_swam * 25
result = distance_swam
return result
|
John had a pack of 52 playing cards. His little sister took away 6 cards and was left with 19 fewer cards than what John started with. How many cards did John's sister have to start with? | def solve() -> int:
cards_in_pack = 52
cards_taken_away = 6
cards_left = cards_in_pack - cards_taken_away
cards_sister_started_with = cards_left + 19
result = cards_sister_started_with
return result
|
A swimming pool is being filled at a rate of 500 liters per minute. How long will it take to fill a pool with a volume of 100 cubic meters? | def solve() -> int:
volume = 100
rate = 500/1000
time = volume/rate
result = time
return result
|
Possible questions and programs: Nina has 4 rabbits, the first rabbit eats 3 carrots, the second rabbit eats half as many carrots as the first one, the third rabbit eats 2 more carrots than the second one, and the fourth rabbit eats the same amount of carrots as the third one. How many carrots does Nina need to feed al... | def solve() -> int:
rabbit1 = 3
rabbit2 = rabbit1 / 2
rabbit3 = rabbit2 + 2
rabbit4 = rabbit3
total = rabbit1 + rabbit2 + rabbit3 + rabbit4
result = total
return result
|
Emily bought a bag of candy for her siblings. She divided the bag into 20 equal portions. If there are 5 siblings in total, including Emily, how many pieces of candy can each of them have? | def solve() -> int:
bag_of_candy = 20
total_siblings = 5
pieces_of_candy_per_sibling = bag_of_candy / total_siblings
result = pieces_of_candy_per_sibling
return result
|
Eric has seven times as many marbles as Nick, but Tom has four times as many marbles as Eric. If they have a total of 130 marbles, how many marbles does Tom have? | def solve() -> int:
nick_marbles = 1
eric_marbles = 7 * nick_marbles
tom_marbles = 4 * eric_marbles
total_marbles = nick_marbles + eric_marbles + tom_marbles
result = tom_marbles
return result
|
Olivia is trying to run 5 miles. She has already run 3 miles and needs to run 2 more miles to reach her goal. What percentage towards her goal is she? | def solve() -> int:
distance_goal = 5
distance_completed = 3
distance_remaining = distance_goal - distance_completed
percentage_completed = (distance_completed / distance_goal) * 100
result = percentage_completed
return result
|
Tom has 100 pennies. He exchanges them for dimes at the bank. After receiving the dimes, he discovers that 10% of them are old dimes worth $1 each. What is the total value of his money now? | def solve() -> int:
pennies = 100
dimes = pennies / 10
old_dimes = dimes * 0.1
new_dimes = dimes - old_dimes
total_value = (old_dimes * 1) + (new_dimes * 0.1)
result = total_value
return result
|
Possible new questions and programs: A recipe for a cake requires 300 grams of flour, 200 grams of sugar, and 150 grams of butter. If a baker wants to make 5 cakes, how much more flour does he need if he only has 1 kilogram of flour in his pantry? | def solve() -> int:
flour_per_cake = 300
sugar_per_cake = 200
butter_per_cake = 150
cakes = 5
flour_in_pantry = 1000
flour_needed = flour_per_cake * cakes
flour_difference = flour_needed - flour_in_pantry
result = flour_difference
return result
|
Student: Emma has 16 more marbles than Harry. She gives 4 marbles to Isaac and 9 marbles to Julia. If Harry has 13 marbles, how many marbles does Emma have left? | def solve() -> int:
emma_marbles = 0
harry_marbles = 0
emma_marbles = emma_marbles - 4
emma_marbles = emma_marbles - 9
harry_marbles = 13
emma_marbles = harry_marbles + 16
result = emma_marbles
return result
|
Student: Tom has to cut a rectangular piece of cloth with the dimensions 8 cm by 17 cm. What is the perimeter of the cloth piece? | def solve() -> int:
length = 8
width = 17
perimeter = 2 * (length + width)
result = perimeter
return result
|
A group of 20 adults and 15 children went to a zoo. The cost of each adult's ticket is $10 and the cost of each child's ticket is $5. If the total cost of the tickets was $225, how many adults were there? | def solve() -> int:
number_of_adults = 20
number_of_children = 15
adult_ticket_price = 10
child_ticket_price = 5
total_cost_of_tickets = 225
total_adult_cost = number_of_adults * adult_ticket_price
total_child_cost = number_of_children * child_ticket_price
total_people = number_of_adults... |
Student: It takes 4 and a half hours to drive from city A to city B. If Carl wants to visit city B four times, how many hours will it take him to drive from city A to city B and back all the trips? | def solve() -> int:
time_per_trip = 4.5
num_trips = 4
total_time = time_per_trip * num_trips * 2
result = total_time
return result
|
Olivia bought a box of 50 chocolates for $10. If she plans to sell each chocolate for 30 cents, how many chocolates will she have to sell to cover her costs? | def solve() -> int:
chocolates_bought = 50
cost = 10
price_per_chocolate = 0.30
total_cost = chocolates_bought * cost
chocolates_to_sell = total_cost / price_per_chocolate
result = chocolates_to_sell
return result
|
Student: A piece of lumber is 12 feet long. How many 6-inch pieces can be cut from it? | def solve() -> int:
lumber_length = 12
lumber_length_in_inches = lumber_length * 12
piece_length = 6
number_of_pieces = lumber_length_in_inches // piece_length
result = number_of_pieces
return result
|
A recipe calls for 2/3 cup of sugar to make 12 cookies. How many cups of sugar is needed to make 48 cookies? | def solve() -> int:
sugar = (2/3)*12
sugar_48_cookies = (sugar/12)*48
result = sugar_48_cookies
return result
|
A shoe store has 50 pairs of sneakers and 40 pairs of flip flops. Lisa goes to the store and buys 15 more pairs of sneakers and 1/2 as many pairs of flip flops as before. After returning home, her brother gives her 1/10 times more pairs of flip flops than the number she purchased at the store. Calculate the total numbe... | def solve() -> int:
sneakers_initial = 50
flip_flops_initial = 40
sneakers_bought = 15
flip_flops_bought = flip_flops_initial / 2
flip_flops_given = flip_flops_bought / 10
total_sneakers = sneakers_initial + sneakers_bought
total_flip_flops = flip_flops_initial + flip_flops_bought + fli... |
A school has 740 students and the school cafeteria provides lunch at a cost of $3 per student. If 60 students bring their own lunch, how much will the school cafeteria make in a day? | def solve() -> int:
num_students = 740
num_students_lunch = num_students - 60
cost_per_student = 3.00
total_cafeteria_revenue = num_students_lunch * cost_per_student
result = total_cafeteria_revenue
return result
|
Matthew wants to make sandwiches for his picnic group. Each sandwich has a cost of $2.65. If Matthew wants to buy enough sandwiches to feed 10 people, each with 2 sandwiches, how much will he spend? | def solve() -> int:
num_people = 10
num_sandwiches_per_person = 2
sandwich_cost = 2.65
total_sandwiches = num_people * num_sandwiches_per_person
total_cost = total_sandwiches * sandwich_cost
result = total_cost
return result
|
Student: Jackie roller skated for 5 days. For the first day, she roller skated for 0.4 miles. For the second day, she roller skated for 0.5 miles. For the third day, she roller skated for 0.9 miles. For the fourth day, she roller skated for 0.6 miles. For the fifth day, she roller skated for 0.8 miles. What is the aver... | def solve() -> int:
day1 = 0.4
day2 = 0.5
day3 = 0.9
day4 = 0.6
day5 = 0.8
total_distance = day1 + day2 + day3 + day4 + day5
average_distance = total_distance / 5
result = average_distance
return result
|
Mike's car traveled 375 miles on 15 gallons of gasoline. What was the car's average miles per gallon (MPG)? | def solve() -> int:
miles_traveled = 375
gallons_of_gas = 15
average_mpg = miles_traveled / gallons_of_gas
result = average_mpg
return result
|
In a bakery, they normally make an average of 100 loaves of bread a day. With 30 days left in the year, they've made 2,800 loaves. How many loaves on average do they need to make to finish the year with the normal average? | def solve() -> int:
average_loaves_per_day = 100
days_left = 30
total_loaves_made = 2800
loaves_needed_to_finish = (average_loaves_per_day * 365 - total_loaves_made) / days_left
result = loaves_needed_to_finish
return result
|
Student: Lucy is 15 years younger than Ben. Ben is three times older than Dan. If Dan is 30 years old, what is their total age? | def solve() -> int:
dan_age = 30
ben_age = 3 * dan_age
lucy_age = ben_age - 15
total_age = dan_age + ben_age + lucy_age
result = total_age
return result
|
Mia wants to make a necklace that is 50 inches long. Her string can only hold 5 inches at a time. How many times does she need to thread the string for the necklace? Samantha jogs for 3 hours at a speed of 5 miles per hour. She then bikes for one-third the time at 3 times the speed. How many miles did she cover? | def solve() -> int:
total_length = 50
string_capacity = 5
num_threads = total_length // string_capacity
if total_length % string_capacity!= 0:
num_threads += 1
jog_time = 3
jog_speed = 5
bike_time = jog_time / 3
bike_speed = jog_speed * 3
total_distance = jog_time * jog_... |
Student: George has a marble collection that consists of 5 red, 8 blue, and 10 green marbles. How many marbles are in George's collection? | def solve() -> int:
red_marbles = 5
blue_marbles = 8
green_marbles = 10
total_marbles = red_marbles + blue_marbles + green_marbles
result = total_marbles
return result
|
Glenn drove 6 blocks from the grocery store to the park and then took a bike 9 blocks to the movie theater. How many blocks did Glenn travel in all? | def solve() -> int:
block1 = 6
block2 = 9
total = block1 + block2
result = total
return result
|
Ben is saving money for a new bike that costs $450. He earns $5 for each hour that he works at his neighbor's garden, and he spends $10 each week on snacks. He already has $120 saved from his birthday. How many weeks does he need to work to buy the bike? | def solve() -> int:
remaining = 450 - 120
hours = 10
net_saving = 5 * hours - 10
weeks = remaining / net_saving
weeks = round(weeks + 0.5)
result = f'Ben needs {weeks} weeks to buy the bike.'
result = weeks
return result
|
Student: Meghan had 3 fewer cookies than 6 times as many cakes. If Meghan had a total of 36 cookies and cakes combined, how many cakes did she have? | def solve() -> int:
cookies = 0
cakes = 0
total = 36
cakes = (total - cookies) / 7
cookies = total - cakes
result = cakes
return result
|
6. Michael and his friend are using their kayak to explore a nearby lake. The maximum capacity of the kayak is 900lbs, but if they bring their dog with them, it can only hold 2/3 of that number. Michael and his friend weigh combined 300lbs and their dog weighs 40lbs. How much weight can the kayak carry? | def solve() -> int:
maxPeople = 2/3 * 900
AvailableWeight = 300 + 40
result = AvailableWeight/maxPeople
return result
|
Elle has 600 books in her library. She read some of the books and then added 80 more books. Later, she gave away 50 books to some of her friends. If Elle had 530 books left in the evening, how many books did she read? Mr. Johnson teaches Algebra and assigns 36 problems for homework. There are 3 times as many multiple c... | def solve() -> int:
books_in_library = 600
books_added = 80
books_given_away = 50
books_left = 530
books_read = books_in_library + books_added - books_given_away - books_left
result = books_read
return result
|
Student: John can ride his bicycle at 9 miles/hour and his sister can ride her bicycle at 7 miles/hour. If they left from the same place, how many minutes will elapse before John has gone 9 miles ahead of his sister? | def solve() -> int:
john_speed = 9
sister_speed = 7
distance = 9
relative_speed = john_speed - sister_speed
time = distance / relative_speed
time_minutes = time * 60
result = time_minutes
return result
|
If Matt can drink 5 boxes of milk during weekdays, and 9 boxes of milk during Saturday, and 12 boxes of milk during Sunday, how many boxes of milk does he drink per week? | def solve() -> int:
total_milk_weekdays = 5
total_milk_saturday = 9
total_milk_sunday = 12
total_milk_per_week = total_milk_weekdays + total_milk_saturday + total_milk_sunday
result = total_milk_per_week
return result
|
Casey has 5 packs of stickers. Each pack has 12 stickers of different animals. She wants to share her stickers with her classmates. She gives 2 stickers to each of her 8 classmates. She keeps the rest of the stickers for herself. How many stickers does Casey have left? | def solve() -> int:
stickers_total = 5 * 12
stickers_give = 2 * 8
stickers_left = stickers_total - stickers_give
result = stickers_left
return result
|
A party has 45 guests, each guest eats 2 pieces of cake. If there are 20 cakes, how many pieces of cake are left? | def solve() -> int:
total_guests = 45
cake_per_guest = 2
total_cake_pieces = 20 * cake_per_guest
remaining_cake_pieces = total_cake_pieces - (total_guests * cake_per_guest)
result = remaining_cake_pieces
return result
|
Ben drives 120 miles to visit his grandparents. His car uses 1 gallon of gas every 15 miles. Gas costs $3.20 per gallon. How much did he spend on gas for the round trip? | def solve() -> int:
gas_used = 120 / 15
gas_used = gas_used * 2
cost_of_gas = gas_used * 3.20
result = cost_of_gas
return result
|
Amar purchased a new laptop for $675. He also bought a carrying case for $20 and a cooling fan for $30. How much did he pay in total? | def solve() -> int:
laptop_price = 675
case_price = 20
fan_price = 30
total_price = laptop_price + case_price + fan_price
result = total_price
return result
|
A family of 5 shares a pizza. If each person eats 2.5 slices of the pizza, what fraction of the pizza is left uneaten? | def solve() -> int:
total_slices = 8
eaten_slices = 2.5 * 5
remaining_slices = total_slices - eaten_slices
fraction_left = remaining_slices / total_slices
result = fraction_left
return result
|
Student: Sarah bought 3 pizzas for her birthday party. Each pizza cost $12.50. If she wants to split the total cost evenly among her 5 friends, how much will each person pay? | def solve() -> int:
pizzas = 3
cost = 12.50
friends = 5
total_cost = pizzas * cost
amount = total_cost / friends
result = amount
return result
|
A bookshelf has six English books and four French books. The English books cost twice as much as the French books. If one French book costs $30, what would it cost to purchase all the books on the shelf? | def solve() -> int:
english_books = 6
french_books = 4
cost_of_french_book = 30
cost_of_english_book = 2 * cost_of_french_book
total_cost_of_english_books = english_books * cost_of_english_book
total_cost_of_french_books = french_books * cost_of_french_book
total_cost = total_cost_... |
A quart of paint can cover 120 square feet. How many quarts of paint does it take to paint a room that is 20 feet wide by 30 feet long with 8 feet high ceilings? | def solve() -> int:
room_area = 2*(20+30)*8
quart_coverage = 120
quarts_needed = room_area/quart_coverage
result = quarts_needed
return result
|
A group of travelers decides to hire a private tour guide who was previously charging $200 per day. The travelers offer the guide a 25% raise. If there are 7 travelers, how much does each traveler have to pay? | def solve() -> int:
guide_salary = 200
raise_percentage = 25
num_travelers = 7
raise_amount = guide_salary * raise_percentage / 100
new_salary = guide_salary + raise_amount
each_traveler_payment = new_salary / num_travelers
result = each_traveler_payment
return result
|
Student: If a company made a profit of $5000 on sales of $20000, what percent profit did they make? | def solve() -> int:
profit = 5000
sales = 20000
profit_percentage = (profit / sales) * 100
result = profit_percentage
return result
|
Mary has 10 blue marbles and 7 red marbles. How many marbles does Mary have in total? | def solve() -> int:
blue_marbles = 10
red_marbles = 7
total_marbles = blue_marbles + red_marbles
result = total_marbles
return result
|
A train runs 60 miles in 1 hour. How long will it take to run 140 miles at the same pace? | def solve() -> int:
speed = 60
distance = 140
time = distance/speed
result = time
return result
|
If 8 people can complete a project in 10 days, how many people are needed to complete the project in 5 days? | def solve() -> int:
workers_initial = 8
days_initial = 10
days_goal = 5
workers_needed = workers_initial * days_initial / days_goal
result = workers_needed
return result
|
Question8: Tom earned $60 last week. If he wants to save 25% of his earnings, how much does he save? | def solve() -> int:
earnings = 60
percent_saved = 0.25
amount_saved = earnings * percent_saved
result = amount_saved
return result
|
A flower shop has 1500 bouquets. If they sell 30% on the first day, 15% on the second day, and 25 bouquets every day for the rest of the week, how many bouquets do they have left at the end of the week? | def solve() -> int:
total_bouquets = 1500
first_day_bouquets = total_bouquets * 0.3
second_day_bouquets = (total_bouquets - first_day_bouquets) * 0.15
remaining_days = 7 - 2
bouquets_per_day = 25
total_remaining_bouquets = total_bouquets - first_day_bouquets - second_day_bouquets - (remaining_da... |
A clothing store purchased a designer blouse for $45 and then marked it up by 20%. A discount of 15% was given at the end of the season. Find the final cost of the blouse? | def solve() -> int:
blouse_cost = 45
markup_percent = 20
discount_percent = 15
final_cost = blouse_cost * (1 + markup_percent/100) * (1 - discount_percent/100)
result = final_cost
return result
|
There are 8 dimes and 6 quarters in a jar. If you pick a coin randomly from the jar, what is the probability that it is a dime or a quarter? | def solve() -> int:
numerator = 8/14 + 6/14
result = numerator
return result
|
Student: Kevin makes three times as many cookies as he eats and gives away the rest to his friends. If he eats 15 cookies and gives away 45 cookies, how many cookies did he make? | def solve() -> int:
cookies_eaten = 15
cookies_made = 0
cookies_given = 45
cookies_made = 3 * cookies_eaten
cookies_given = cookies_made - cookies_eaten
cookies_made = cookies_eaten + cookies_given
result = cookies_made
return result
|
Mary has 120 blocks and she wants to divide them into 3 equal groups. How many blocks would each group have? | def solve() -> int:
numBlocks = 120
numGroups = 3
totalBlocksPerGroup = numBlocks / numGroups
result = totalBlocksPerGroup
return result
|
Sarah has 5 different flavors of ice cream in her shop. She sold 62 ice creams in total today. If 1/5 of total ice creams sold were vanilla flavored, and 1/4th of the remaining ice creams were strawberry flavored, how many ice creams were left to be sold? | def solve() -> int:
sold_vanilla = 62/5
remaining_total = 62 - sold_vanilla
remaining_strawberry = remaining_total/4
left_to_sell = remaining_total - remaining_strawberry
result = left_to_sell
return result
|
David has $50 and buys 3 shirts for $20 each, how much money does he have left? | def solve() -> int:
cash = 50
num_shirts = 3
price_shirt = 20
total_spent = num_shirts * price_shirt
money_left = cash - total_spent
result = money_left
return result
|
A rectangular tank has a length of 10 meters, a width of 6 meters and a height of 4 meters. What is the volume of the tank? | def solve() -> int:
tank_length = 10
tank_width = 6
tank_height = 4
tank_volume = tank_length * tank_width * tank_height
result = int(tank_volume)
return result
|
If a number is increased by 40% and then decreased by 30%, the resulting number is 84. What was the original number? | def solve() -> int:
final_number = 84
number = final_number / (1 + 40 / 100)
number = number / (1 - 30 / 100)
result = number
return result
|
Karen wants to tile her bathroom floor, which is 8 feet long and 6 feet wide. If each tile is 1 square foot, how many tiles does Karen need to buy? | def solve() -> int:
length = 8
width = 6
area = length * width
tiles_needed = area // 1
result = tiles_needed
return result
|
In a musical show, Kay played 6 songs. Leo played 3 more than Kay and Mia played 2 less than the product of Kay and Leo. If Kay, Leo, and Mia are on the same team, how many songs did they play for their team? | def solve() -> int:
kay = 6
leo = kay + 3
mia = kay * leo - 2
team = kay + leo + mia
result = team
return result
|
David is making a rectangular banner that is 6 feet wide and 4 feet tall. He also wants to add 10 small rectangular patches to the banner that measure 6 inches by 4 inches each. What will be the total area in square inches David needs to cover for the banner and patches? | def solve() -> int:
width_banner_feet = 6
height_banner_feet = 4
width_patch_inches = 6
height_patch_inches = 4
area_banner_feet = width_banner_feet * height_banner_feet * 12 * 12
area_patch_inches = 10 * width_patch_inches * height_patch_inches
total_area_inches = area_banner_feet... |
A store is running a 20% off sale on all items. If a shirt originally costs $25, how much will it cost during the sale? | def solve() -> int:
original_price = 25
percent_off = 20
sale_price = original_price*(1 - percent_off/100)
result = sale_price
return result
|
Max needs to read a 500-page book. He reads 25 pages every 20 minutes. How long will it take him to finish reading the book? | def solve() -> int:
total_pages = 500
pages_per_minute = 25/20
time_in_minutes = total_pages/pages_per_minute
result = time_in_minutes
return result
|
A school has 5 class sections with an average of 25 students per class. If one of the sections has 40 students, what is the new average per class after transferring 10 students from the section with 40 students to each of the other four sections? | def solve() -> int:
total_students = 5 * 25
total_students -= 40
total_students += 4 * 10
new_avg = total_students / 5
result = new_avg
return result
|
Helene is painting a room that has two windows that are 4 feet by 3 feet and a door that is 6 feet by 3 feet. The room is 10 feet tall. If one gallon of paint covers 350 square feet, how many gallons of paint does Helene need? | def solve() -> int:
window1_area = 4 * 3
window2_area = 4 * 3
door_area = 6 * 3
room_area = 2 * (10 * (4+3) + 10 * (4+3)) + 10 * (6+3)
total_area = room_area - window1_area - window2_area - door_area
paint_needed = total_area / 350
result = paint_needed
return result
|
Four friends went out to dinner and split the bill equally. If the bill including tax and tip was $110.25, how much does each person owe? | def solve() -> int:
bill = 110.25
num_friends = 4
per_person = bill/num_friends
result = per_person
return result
|
A student answered 18 out of 20 questions correctly on a test. What percentage of questions did the student answer correctly? | def solve() -> int:
total_questions = 20
correct_answers = 18
percentage_correct = (correct_answers/total_questions)*100
result = percentage_correct
return result
|
A room has dimensions 10 meters by 12 meters by 3 meters. If it was filled with 50cm cubes, how many cubes can it take? | def solve() -> int:
length = 10
width = 12
height = 3
cube_side_length = 0.5
total_cubes = (length * 100 / cube_side_length) * (width * 100 / cube_side_length) * (height * 100 / cube_side_length)
result = int(total_cubes)
return result
|
Maya needs to make a tray of 20 cupcakes and she needs 2 eggs and 1 cup of flour for each cupcake. If a dozen eggs cost $3 and a bag of flour costs $6, how much does she spend for all the ingredients? | def solve() -> int:
eggs_per_cupcake = 2
flour_per_cupcake = 1
cupcakes = 20
eggs_per_dozen = 12
cost_per_dozen_eggs = 3
cost_per_bag_flour = 6
total_eggs = (eggs_per_cupcake * cupcakes) / eggs_per_dozen
total_flour = (flour_per_cupcake * cupcakes) / eggs_per_dozen
... |
There were 96 jelly beans in a bowl. Kara ate one-third of the jelly beans and Kyle ate 15 jelly beans. How many jelly beans remain in the bowl? | def solve() -> int:
total = 96
kara = total // 3
kyle = 15
remain = total - kara - kyle
result = remain
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.