question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
If the area of a rectangle is 24 square meters and the length is 8 meters, what is the width of the rectangle? | def solve() -> int:
area = 24
length = 8
width = area / length
result = width
return result
|
Frank works 5 days a week for $10.00 an hour and takes an extra part-time job on Saturdays for an extra $13.20 an hour. How much money does he make in total for the week? | def solve() -> int:
hourly_rate_regular_job = 10.00
hourly_rate_part_time_job = 13.20
hours_regular_job = 8
hours_part_time_job = 4
total_pay_regular_job = hourly_rate_regular_job * hours_regular_job
total_pay_part_time_job = hourly_rate_part_time_job * hours_part_time_job
tot... |
There are 24 children in a class. The ratio of the number of boys to the number of girls is 3:4. How many boys are there in the class? | def solve() -> int:
total = 24
ratio = 3/4
boys = (ratio*total)/(ratio+1)
result = boys
return result
|
Nine years from now, Sophia will be four times as old as Ethan. If Ethan is currently 6 years old, how old will Sophia be in five years? | def solve() -> int:
ethan_age = 6
sophia_age_in_9_years = 4 * (ethan_age + 9)
sophia_age_in_5_years = sophia_age_in_9_years - 4
result = sophia_age_in_5_years
return result
|
A store has a sale of 15% off on all items. If an item originally costs $80, how much will it cost during the sale? | def solve() -> int:
original_price = 80
discount_rate = 0.15
discount_amount = original_price * discount_rate
final_price = original_price - discount_amount
result = final_price
return result
|
Daniel bought 5 t-shirts for $12 each and 3 pairs of shorts for $18 each. He spent a total of $99. How much did each t-shirt cost? | def solve() -> int:
tshirt_cost = 12
shorts_cost = 18
total_cost = 99
num_tshirts = 5
num_shorts = 3
result = ((total_cost - (shorts_cost*num_shorts)) / num_tshirts)
return result
|
John borrowed $5000 from a bank to buy a car. He has to pay back $5500 after a year. What's the interest rate? | def solve() -> int:
principal = 5000
amount = 5500
time = 1
interest_rate = ((amount-principal)/principal)*(100/time)
result = interest_rate
return result
|
A rectangular garden is 24 feet long and 16 feet wide. If we want to add a walkway around the garden that is 3 feet wide, how many square feet of walkway do we need? | def solve() -> int:
new_length = 24 + 6
new_width = 16 + 6
area_of_walkway = (new_length * new_width) - (24 * 16)
result = area_of_walkway
return result
|
A teacher wants to distribute 48 pencils evenly to a class of 16 students. If each student needs at least 2 pencils, how many pencils will each student get? | def solve() -> int:
total_pencils = 48
total_students = 16
minimum_pencils = 2
remaining_pencils = total_pencils - (total_students * minimum_pencils)
each_additional_pencils = remaining_pencils / total_students
total_each_student_pencils = minimum_pencils + each_additional_pencils
result = t... |
andy bought 2 books and 1 pencils. The books cost $5 each and the pencils cost $1 each. How much money did Sandy spend altogether? | def solve() -> int:
book_price = 5
pencil_price = 1
num_books = 2
num_pencils = 1
total_cost = (book_price * num_books) + (pencil_price * num_pencils)
result = total_cost
return result
|
Jake got paid $3200 per month. He spent 40% of it on rent. How much money does he have left after paying the rent? | def solve() -> int:
income = 3200
rent = income * 0.4
remaining = income - rent
result = remaining
return result
|
Jane has three ropes of length 100, 145, and 60 meters. She wants to divide each rope into equal parts of the maximum possible length without any leftovers. How many equal parts can Jane get from each rope? | def solve() -> int:
common_length = min(100,145,60)
part_1 = 100 // common_length
part_2 = 145 // common_length
part_3 = 60 // common_length
result = part_1, part_2, part_3
return result
|
Lin has 12 cookies. She eats 25% of them and then shares the rest equally with her brother. How many cookies does each of them get? | def solve() -> int:
eaten = 0.25 * 12
left = 12 - eaten
shared = left / 2
result = shared
return result
|
Student: John buys 1 computer for $900 and a laptop for $800. How much money did he spend? | def solve() -> int:
computer = 900
laptop = 800
total = computer + laptop
result = total
return result
|
A car travels a distance of 90 km at a speed of 30 km/hr. How much time does it take to cover the same distance at a speed of 40 km/hr? | def solve() -> int:
distance = 90
speed1 = 30
speed2 = 40
time1 = distance/speed1
time2 = distance/speed2
result = time2
return result
|
Student: A donkey is sleeping for 3 hours each night, and a hippo for 2 hours more. How much time do both animals sleep in two weeks? | def solve() -> int:
donkey_sleep = 3
hippo_sleep = donkey_sleep + 2
total_sleep = donkey_sleep + hippo_sleep
total_sleep_two_weeks = total_sleep * 14
result = total_sleep_two_weeks
return result
|
A recipe for pasta salad serves 10 people and requires 2 cups of pasta, 1/2 cup of olive oil, and 1/4 cup of vinegar. If you need to serve 35 people, how much olive oil will you need? | def solve() -> int:
original_servings = 10
olive_oil_per_serving = 0.5
new_servings = 35
olive_oil_needed = (olive_oil_per_serving * new_servings) / original_servings
result = olive_oil_needed
return result
|
Sarah is paying her monthly phone bill for a month with exactly three weeks. The phone company charges Sarah $0.10 per minute for calls and $0.05 per text message every week, and Sarah makes an average of 30 minutes worth of calls and sends 100 text messages every week. They're giving her a 25% discount on the whole bi... | def solve() -> int:
calls_per_week = 30
texts_per_week = 100
call_cost_per_minute = 0.10
text_cost_per_message = 0.05
discount_percentage = 0.25
fine = 15
total_calls = calls_per_week * 3
total_texts = texts_per_week * 3
call_cost = total_calls * call_cost_per_minute
text_co... |
Ella wants to make a quilt. She has 24 pieces of fabric, each measuring 12 inches by 15 inches. She wants to cut out squares of the same size from each piece of fabric. She needs 64 squares to make the quilt. What is the largest size of the squares she can cut out? | def solve() -> int:
fabric_length = 12
fabric_width = 15
fabric_area = fabric_length * fabric_width
squares_needed = 64
total_square_area = squares_needed * fabric_area / 24
square_side = (total_square_area) ** 0.5
result = square_side
return result
|
Student: A pizza restaurant charges $10 for a pizza with 1 topping and adds $2 for each additional topping. If Tom orders a pizza with 4 toppings, how much will his total be? | def solve() -> int:
toppings = 4
base_cost = 10
additional_cost = 2
total_cost = base_cost + (toppings - 1) * additional_cost
result = total_cost
return result
|
If a mixture contains 25% water and 75% alcohol, how much alcohol is in 80 liters of the mixture? | def solve() -> int:
water_percent=25/100
alcohol_percent=75/100
total_mixture=80
alcohol=total_mixture*alcohol_percent
result = alcohol
return result
|
A company has a profit of $30,000 and revenue of $120,000. What is the profit margin as a percentage? | def solve() -> int:
profit = 30000
revenue = 120000
profit_margin_percent = profit / revenue * 100
result = profit_margin_percent
return result
|
A gift store has a total of 150 items displayed. Of those, 20% are toys, 30% are books, and 15% are decorative items. How many items are either toys or books? | def solve() -> int:
total_items = 150
toys = (20/100)*total_items
books = (30/100)*total_items
decorative_items = (15/100)*total_items
toys_or_books = toys + books
result = toys_or_books
return result
|
Some possible questions and programs are: Abby buys $32 worth of pencils, $45 worth of notebooks, and $28 worth of erasers. She pays with a $100 bill and a $50 bill. How much change does she receive? | def solve() -> int:
total_cost = 32 + 45 + 28
total_payment = 100 + 50
change = total_payment - total_cost
result = change
return result
|
George likes to collect stamps. He has 21 foreign stamps, 10 more domestic stamps than foreign stamps, and 5 less rare stamps than foreign stamps. How many stamps does George have in his album? | def solve() -> int:
foreign = 21
domestic = foreign + 10
rare = foreign - 5
total = foreign + domestic + rare
result = total
return result
|
A pizza has 8 slices. Each slice has 3 pieces of pepperoni, 2 pieces of cheese, and 1 olive. How many pieces of pepperoni, cheese, and olives are there in total on the pizza? | def solve() -> int:
slices = 8
pepperoni_per_slice = 3
cheese_per_slice = 2
olive_per_slice = 1
total_pepperoni = slices * pepperoni_per_slice
total_cheese = slices * cheese_per_slice
total_olive = slices * olive_per_slice
result = (total_pepperoni, total_cheese, total_olive)
return ... |
A rectangular garden is 15 feet long and 10 feet wide. What is the perimeter of the garden? | def solve() -> int:
length = 15
width = 10
perimeter = 2 * (length + width)
result = perimeter
return result
|
Alex is 12 years younger than his father. In 8 years, the age difference between them will be twice the age of Alex's father. What is the present age of Alex's father? | def solve() -> int:
agefather = 0
ageAlex = agefather - 12
ageFatherAfter8 = agefather + 8
ageAlexAfter8 = ageAlex + 8
diff = ageFatherAfter8 - ageAlexAfter8
diff = diff / 2
agefather = ageFatherAfter8 + diff
result = agefather
return result
|
Student: Sarah has a raw bench press of 200 pounds without arch or leg drive. Arching her back adds 10% to her lift. Leg drive adds 15 pounds to her bench. How much more pounds does she get out of arch and leg drive versus no arch and no leg drive? | def solve() -> int:
raw_bench_press = 200
arch_percentage = 0.1
arch_addition = raw_bench_press * arch_percentage
leg_drive_addition = 15
result = arch_addition + leg_drive_addition
return result
|
A bakery had 50 cupcakes, but sold 20 of them in the morning. Then, 2 bakers baked 15 cupcakes each. How many cupcakes does the bakery have now? | def solve() -> int:
cupcakes = 50
sold_cupcakes = 20
bakers = 2
cupcakes_baked = 15
remaining_cupcakes = cupcakes - sold_cupcakes
total_cupcakes = remaining_cupcakes + (bakers * cupcakes_baked)
result = total_cupcakes
return result
|
An ice cream shop sells 120 ice creams in a day, of which 70% are cones and the rest are cups. If a cone costs $3 and a cup costs $4, what is the total revenue for the day? | def solve() -> int:
total_icecreams = 120
cone_icecreams = (70/100) * total_icecreams
cup_icecreams = total_icecreams - cone_icecreams
cone_price = 3
cup_price = 4
total_revenue = (cone_icecreams * cone_price) + (cup_icecreams * cup_price)
result = total_revenue
return result
|
A rectangle has a length of 8 cm and a width of 5 cm. What is the area of the rectangle? | def solve() -> int:
length = 8
width = 5
area = length * width
result = area
return result
|
Max's bedroom has an area of 400 square feet. He wants to repaint the walls. If the paint cans cover 150 square feet each, how many cans will he need? | def solve() -> int:
bedroom_area = 400
paint_can_coverage = 150
cans_needed = bedroom_area / paint_can_coverage
result = cans_needed
return result
|
Possible new questions and programs are: To celebrate the end of the year, a class of 25 students decides to order pizza and soda for lunch. Each pizza costs $12 and can feed 4 students, and each soda costs $1.5 and can serve 2 students. If the teacher pays for 20% of the total bill, how much will each student need to ... | def solve() -> int:
pizzas = (25 // 4) + (25 % 4 > 0)
sodas = (25 // 2) + (25 % 2 > 0)
total = pizzas * 12 + sodas * 1.5
student_share = 0.8 * total / 25
result = round(student_share, 2)
return result
|
At Alex's party, there are 6 times as many girls as boys. Each girl paid $30 to attend the party, while each boy paid $50. If there are 15 boys at the party, what is the total amount collected at the party? | def solve() -> int:
boys = 15
girls = 6 * boys
boy_cost = 50
girl_cost = 30
boys_total = boys * boy_cost
girls_total = girls * girl_cost
total_collected = boys_total + girls_total
result = total_collected
return result
|
A soccer stadium has a seating capacity of 50,000. If they increase stadium capacity by 40%, how many people can sit in the stadium? | def solve() -> int:
stadium_capacity = 50000
increase_percentage = 40
increase_amount = stadium_capacity * increase_percentage / 100
new_capacity = stadium_capacity + increase_amount
result = new_capacity
return result
|
A bookshelf can hold 50 books and it is currently filled with 35 books. What percentage of the bookshelf is empty? | def solve() -> int:
max_books = 50
num_books = 35
empty_space = max_books - num_books
percentage = (empty_space / max_books) * 100
result = percentage
return result
|
Laura and Tom want to buy a boat, so they went to a marina to see some boats before making a decision. The first boat was not too big and the price was reasonable. The second boat was really fancy and Laura loved it but was twice as expensive as the first one and was well over their budget. They ended up buying the fir... | def solve() -> int:
price_first_boat = 0
price_second_boat = 0
total_price = 150000
price_first_boat = total_price / 3
price_second_boat = 2 * price_first_boat
result = price_first_boat
return result
|
A bookstore sells books for $15 each and journals for $5 each. If a customer buys 3 books and 2 journals, what is the total cost of the purchase? | def solve() -> int:
book_cost = 15
journal_cost = 5
num_books = 3
num_journals = 2
total_cost = (book_cost * num_books) + (journal_cost * num_journals)
result = total_cost
return result
|
Student: The ratio of chairs to tables in a classroom is 5:2. If there are a total of 20 chairs, calculate the number of tables in the classroom. | def solve() -> int:
chairs = 20
ratio_chairs_tables = 5/2
tables = chairs / ratio_chairs_tables
result = tables
return result
|
A bakery has 80 cupcakes on display, but 15 of them are burnt and not fit for sale. After throwing away the burnt cupcakes, the bakery sells 30 cupcakes to customer A and 25 to customer B. If all the non-burnt cupcakes are sold, how many cupcakes did the bakery sell to other customers? | def solve() -> int:
total_cupcakes = 80
burnt_cupcakes = 15
non_burnt_cupcakes = total_cupcakes - burnt_cupcakes
cupcakes_sold_A = 30
cupcakes_sold_B = 25
total_cupcakes_sold = cupcakes_sold_A + cupcakes_sold_B
other_customers_cupcakes = non_burnt_cupcakes - total_cupcakes_sold
resu... |
If Emily has 20 more stickers than Tim and Tim has 15 stickers, how many stickers do they have together? | def solve() -> int:
tim_stickers = 15
emily_stickers = tim_stickers + 20
total_stickers = tim_stickers + emily_stickers
result = total_stickers
return result
|
Mrs. Thompson is making sandwiches for a picnic. She needs to make 15 vegetarian sandwiches and 20 meat sandwiches. Each vegetarian sandwich requires 2 slices of bread and each meat sandwich requires 3 slices of bread. How many slices of bread does she need in total? | def solve() -> int:
veg_sandwiches = 15
meat_sandwiches = 20
bread_per_veg_sandwich = 2
bread_per_meat_sandwich = 3
total_bread = (veg_sandwiches * bread_per_veg_sandwich) + (meat_sandwiches * bread_per_meat_sandwich)
result = total_bread
return result
|
Student: A party needs enough food and drinks for 20 people. If each person needs 2 sandwiches and 1 drink, and the sandwiches cost $3 each, and the drinks cost $2 each, how much does it cost to buy everything? | def solve() -> int:
sandwich_cost = 3
drink_cost = 2
num_people = 20
num_sandwiches = num_people * 2
num_drinks = num_people
total_cost = num_sandwiches * sandwich_cost + num_drinks * drink_cost
result = total_cost
return result
|
Student: Kim takes 2 Aleve tablets that are 220 mg each, every 12 hours. How many mg does she take a day? | def solve() -> int:
aleve_mg = 220
aleve_tablets = 2
hours_per_day = 24
aleve_mg_per_12h = aleve_mg * aleve_tablets
aleve_mg_per_day = aleve_mg_per_12h * (hours_per_day / 12)
result = aleve_mg_per_day
return result
|
A florist bought 200 roses for $2 each. She sold these in packs of 20 roses each. What should she charge for each pack to make a profit of $60? | def solve() -> int:
roses_bought = 200
cost_per_rose = 2
pack_size = 20
profit = 60
total_cost = roses_bought * cost_per_rose
packs_sold = roses_bought / pack_size
price_per_pack = (total_cost + profit) / packs_sold
result = price_per_pack
return result
|
A skyscraper is casting a shadow of 50 meters. At the same time, a person is casting a shadow of 2 meters. If the height of the person is 1.8 meters, what is the height of the skyscraper? | def solve() -> int:
shadow_person = 2
height_person = 1.8
shadow_skyscraper = 50
height_skyscraper = (height_person / shadow_person) * shadow_skyscraper
result = height_skyscraper
return result
|
Michael made $200 selling a laptop, half as much selling a smartwatch, and 3 times as much selling a smartphone. If these three items made up 70% of his total sales revenue, how much did Michael make in total? | def solve() -> int:
laptop = 200
smartwatch = laptop / 2
smartphone = laptop * 3
total_sales = (laptop + smartwatch + smartphone) / 0.7
result = total_sales
return result
|
Jenny went shopping and bought a dress and four hair accessories. The dress cost $60 and each hair accessory cost $8.30. What was the total amount she spent? | def solve() -> int:
dress_cost = 60
accessory_cost = 8.30
num_accessories = 4
total_cost = dress_cost + (accessory_cost * num_accessories)
result = total_cost
return result
|
Jade had $15. She spent $3 on a notebook and $7 on a hoodie. Then, she received $12 for her birthday. How much money does Jade have now? | def solve() -> int:
jade_money = 15
jade_money = jade_money - 3 - 7
jade_money = jade_money + 12
result = jade_money
return result
|
At a store, you can use a coupon for $10 off your purchase of $50 or more. You spend $60, how much do you save with the coupon? | def solve() -> int:
discounted_price = 60 - 10
result = discounted_price
return result
|
Student: A store owner is having a sale, offering 15% off the original price of an item. If the original price is $80, what is the sale price? | def solve() -> int:
original_price = 80
discount_rate = 0.15
discount_amount = original_price * discount_rate
sale_price = original_price - discount_amount
result = sale_price
return result
|
In a cooking contest, Andrew's recipe contained three times the amount of ingredient than the least recipe. If the most used ingredient was 1 kg and the range of used ingredients is 500 g, what was the quantity of Andrew's ingredient? | def solve() -> int:
least_recipe = 0.5
most_used_ingredient = 1
andrew_ingredient = least_recipe * 3
result = andrew_ingredient
return result
|
Student: Alex has 6 shirts and 4 pants. Kim wants to buy 2 times as many shirts as Alex has and 3 times as many pants as Alex has. How many clothes does Kim want to have? | def solve() -> int:
alex_shirts = 6
alex_pants = 4
kim_shirts_factor = 2
kim_pants_factor = 3
kim_shirts = kim_shirts_factor * alex_shirts
kim_pants = kim_pants_factor * alex_pants
kim_clothes = kim_shirts + kim_pants
result = kim_clothes
return result
|
A printer can print 24 pages per minute. How many pages can it print in 3 hours? | def solve() -> int:
pages_per_minute = 24
minutes_in_hour = 60
hours = 3
pages = pages_per_minute * minutes_in_hour * hours
result = pages
return result
|
A car travels 240 kilometers on 12 liters of gas. How many liters of gas does it need to travel 360 kilometers? | def solve() -> int:
kilometers_per_liter = 240 / 12
liters_of_gas_for_360_kilometers = kilometers_per_liter * 360
result = liters_of_gas_for_360_kilometers
return result
|
Maya baked 24 cookies and 42 muffins for a party. Out of those 42 muffins, 14 of them were chocolate. Out of the 24 cookies, 12 of them were not chocolate. How many more chocolate muffins were there than chocolate cookies? | def solve() -> int:
cookies = 24
muffins = 42
chocolate_muffins = 14
chocolate_cookies = cookies - 12
difference = chocolate_muffins - chocolate_cookies
result = difference
return result
|
Tania spends $50 each day on rent and $15 each day on movies. If she earns $10 for every item she sells, how many items must she sell each day to cover her expenses? | def solve() -> int:
rent = 50
movies = 15
earnings_per_item = 10
total_expenses = rent + movies
items_needed = total_expenses / earnings_per_item
result = items_needed
return result
|
Lisa has a bowl of 60 strawberries. She wants to divide them equally among her 4 friends. How many strawberries will each friend get? | def solve() -> int:
total_strawberries = 60
num_friends = 4
strawberries_per_friend = total_strawberries / num_friends
result = strawberries_per_friend
return result
|
Student: Maya is a florist. She sells roses for $2 each, tulips for $1.50 each, and carnations for $1 each. She sold 48 roses, 36 tulips, and 24 carnations today. She also gave away 6 roses and 4 tulips to a regular customer as a gift. How much revenue did she make today? | def solve() -> int:
price_rose = 2
price_tulip = 1.5
price_carnation = 1
num_rose_sold = 48
num_tulip_sold = 36
num_carnation_sold = 24
num_rose_given = 6
num_tulip_given = 4
revenue_rose = price_rose * (num_rose_sold - num_rose_given)
revenue_tulip = price_tulip * (num_tulip_sol... |
A car travels 300 miles in 5 hours. If the car's speed increases by 20mph, how long will it take for the car to travel 360 miles? | def solve() -> int:
current_speed = 300 / 5
new_time = 360 / (current_speed + 20)
result = new_time
return result
|
Tyler wants to buy a new video game for $60, but he only has $40. He decides to save $5 each week. How many weeks will it take him to save enough money to buy the game? | def solve() -> int:
game_cost=60
current_money=40
weekly_savings=5
weeks=(game_cost-current_money)//weekly_savings
result = weeks
return result
|
On weekdays, Dave takes a 40-minute train ride to work, then walks for 5 more minutes to get in place. If he takes the same route back home, calculate how much time, in minutes, Dave spends travelling to and from work every day. | def solve() -> int:
train_ride = 40
walking_time = 5
total_time = (train_ride + walking_time) * 2
result = total_time
return result
|
Leo has a jar of marbles that contains 20 red marbles, 15 blue marbles, and 10 green marbles. He randomly picks one marble from the jar and puts it in his pocket. Then he picks another marble from the jar and puts it in his pocket. What is the probability that both marbles are green? | def solve() -> int:
result = 1/66
return result
|
Joe's smoothie recipe calls for 2 cups of strawberries and makes 6 servings. If he only wants to make 2 servings, how many cups of strawberries will he need? | def solve() -> int:
cups_of_strawberries_per_serving = 2/6
servings_joe_wants_to_make = 2
cups_of_strawberries_joe_needs = servings_joe_wants_to_make * cups_of_strawberries_per_serving
result = cups_of_strawberries_joe_needs
return result
|
If three pens cost $3.75, how many pens can you buy for $12.50? | def solve() -> int:
cost_for_3 = 3.75
total_cost = 12.5
cost_per_pen = cost_for_3 / 3
num_pens = total_cost / cost_per_pen
result = num_pens
return result
|
During his training yesterday, Alex did 40 push-ups. Each day, he plans to increase his number of push-ups by 2 more than the previous day. If he does his training for five consecutive days, how many push-ups will he perform on the third day? | def solve() -> int:
first_day = 40
increase_per_day = 2
third_day = first_day + (increase_per_day * 2)
result = third_day
return result
|
Student: Anna and her husband go to a sushi restaurant for dinner. They order two rolls for $12 each, two nigiri for $6 each, and two drinks for $4 each. If Anna wants to give a 20% tip to the sushi chef, how much would it be? | def solve() -> int:
roll_price = 12
nigiri_price = 6
drink_price = 4
total_price = roll_price * 2 + nigiri_price * 2 + drink_price * 2
tip_percentage = 0.2
tip_amount = total_price * tip_percentage
result = tip_amount
return result
|
``` A triangle has a base of 10cm and a height of 8cm. What is the area of the triangle? | def solve() -> int:
base = 10
height = 8
area = 0.5 * base * height
result = area
return result
|
Bob wants to paint his fence. The fence has 20 panels, each of which is 6 feet long and 4 feet high. He can paint one square foot of fence with one ounce of paint. He has a can of paint that contains 128 ounces. How many panels can he paint with the can of paint? | def solve() -> int:
length = 6
height = 4
paint = 128
area = length * height
panels = paint / area
result = panels
return result
|
A toy store sells a certain toy for $25. They decide to give a 30% discount to customers who buy five or more of the same toy at one time. How much will a customer pay for eight of the same toys? | def solve() -> int:
toy_price = 25
quantity = 8
if quantity >= 5:
discount = 0.3
else:
discount = 0
total_price = toy_price * quantity * (1 - discount)
result = total_price
return result
|
Toby tutors math online. He charges $25.00 per hour for his services. He works 10 hours per week on Mondays, Wednesdays, and Fridays. He also pays $15.00 per month for the online platform fee. How much money does he make in a month? Assume that a month has 4 weeks. | def solve() -> int:
revenue_per_week = 25 * 10
revenue_per_month = revenue_per_week * 4
expense_per_month = 15
profit_per_month = revenue_per_month - expense_per_month
result = profit_per_month
return result
|
Katie is organizing a charity event and needs to figure out how many tables and chairs she needs for all of the attendees. She has a guest list of 250 people and can fit 8 people at each table. Each table will need 6 chairs. How many tables and chairs does Katie need to order? | def solve() -> int:
guest_list = 250
table_capacity = 8
chair_per_table = 6
tables_needed = guest_list // table_capacity
chairs_needed = guest_list * chair_per_table
result = (tables_needed, chairs_needed)
return result
|
Jane is paid $10 per hour, and she worked for 8 hours on Monday and 6 hours on Tuesday. If she earns 10% more on Tuesdays, how much did she earn altogether for these two days? | def solve() -> int:
rate = 10
monday_hours = 8
tuesday_hours = 6
tuesday_pay = (1.10 * rate * tuesday_hours)
pay = (rate * monday_hours) + tuesday_pay
result = pay
return result
|
4. Peter has 7 less crabs than Luke. There are 107 crabs altogether. How many crabs does Luke have? | def solve() -> int:
crabs_peter = 107 + 7
result = crabs_peter
return result
|
Michael and his friends collected 151 pieces of candy. If they divided the candy into 5 equal piles, how many pieces of candy will each pile have? | def solve() -> int:
n1 = 151
n2 = n1/5
result = n2
return result
|
Student: 1. John drove to his grocery store every day for five days taking the same route each day. He determined that it took him 7.5 hours to drive all together. If he drove 20 miles slower on the fourth day, how long was his total travel time? | def solve() -> int:
total_time = 7.5
slower_speed = 20
total_time -= slower_speed/60
result = total_time
return result
|
Student: 8. Mark's shop bought 2550 crates of apples to restock his store, but only managed to sell 1800 crates. How many crates of apples does Mark's shop still have in the storeroom? | def solve() -> int:
crates_bought = 2550
crates_sold = 1800
crates_left = crates_bought - crates_sold
result = crates_left
return result
|
A baker is making cookies for a party. He has 3 kg of flour and each batch of cookies requires 200 g of flour. He can make 24 cookies from one batch. How many cookies can he make with all his flour? | def solve() -> int:
number_batches = 3 * 1000 / 200
number_cookies = number_batches * 24
result = number_cookies
return result
|
Kristen has a total of 84 pencils. Sammy has 24 pencils more than Kristen, how many pencils do they both have together? | def solve() -> int:
kristen = 84
sammy = 0
sammy = kristen + 24
total = kristen + sammy
result = total
return result
|
Emma scores 4 shots worth 1 point and 2 shots worth 3 points every 5 minutes. She plays for 2 periods. Each period is 15 minutes. How many points does she score? | def solve() -> int:
shots_worth_1_point = 4
shots_worth_3_points = 2
minutes_per_period = 15
points_per_shot_1 = 1
points_per_shot_3 = 3
shots_per_period = shots_worth_1_point + shots_worth_3_points
points_per_period = (shots_worth_1_point * points_per_shot_1) + (shots_worth_3_points * ... |
Amanda is making bracelets for her friends. She has 27 beads of different colors and she wants to use 9 beads for each bracelet. She also needs 5 inches of string for each bead and 2 extra inches to tie the knots. How long should the string be for each bracelet? | def solve() -> int:
beads_per_bracelet = 9
string_per_bead = 5
extra_string = 2
string_per_bracelet = beads_per_bracelet * string_per_bead + extra_string
result = string_per_bracelet
return result
|
A car rental company charges $50 per day plus 10 cents per mile driven. I rented a car for 3 days and drove 250 miles. How much did I pay for the car rental? | def solve() -> int:
daily_rate = 50
mileage_rate = 0.1
days = 3
miles = 250
total_cost = daily_rate * days + mileage_rate * miles
result = total_cost
return result
|
Student: A toy store has a sale of 20% off on all purchases. Maria wants to buy a toy for $15, a game for $20, and a puzzle for $10. What will be her total cost after the discount? | def solve() -> int:
toy = 15
game = 20
puzzle = 10
total_before = toy + game + puzzle
discount = 0.2 * total_before
total_after = total_before - discount
result = total_after
return result
|
Tina has a box with 18 papers, each of them worth $25. How much does she have in total? | def solve() -> int:
papers = 18
value_per_paper = 25
result = papers * value_per_paper
return result
|
4. Ms. Mary purchased 20 shirts at $14.99 each. She also received one free shirt with her purchase and had to pay 8% sales tax on the total cost of the shirts. How much did she pay in total? | def solve() -> int:
num_shirts = 20
price_each = 14.99
total_cost = num_shirts * price_each
sales_tax = total_cost * 0.08
total_cost_after_tax = total_cost + sales_tax
result = total_cost_after_tax
return result
|
Ryan went for a walk and ran twice as fast as he walked. If he walked for 4 miles in 40 minutes, how long did he run for miles? | def solve() -> int:
walkingTime = 40
walkingDistance = 4
ratio = 2
runningDistance = walkingDistance*ratio
runningTime = (runningDistance/walkingDistance)*walkingTime
result = runningTime
return result
|
Ryan had twenty-four balloons and he wanted to divide them equally between himself and his three friends. After dividing the balloons, each person had six balloons. How many balloons did Ryan have to begin with? | def solve() -> int:
num_friends = 3
balloons_per_person = 6
total_balloons = num_friends * balloons_per_person
result = total_balloons * 2
return result
|
The ratio of the area of a rectangle to its perimeter is 2:5. If the length of the rectangle is 12 cm, calculate its width in cm. | def solve() -> int:
result = 6 / 7
return result
|
A baker needs to make 60 cupcakes for an order. If they can bake 12 cupcakes at a time, how many batches of cupcakes would they need to make? | def solve() -> int:
number_of_cupcakes = 60
cupcakes_per_batch = 12
number_of_batches = number_of_cupcakes // cupcakes_per_batch + (1 if number_of_cupcakes % cupcakes_per_batch!= 0 else 0)
result = number_of_batches
return result
|
Student: Lauren has an orange orchard and sells one bag of oranges for $13. She needs make $576 this week. How many bags of oranges did she sell? | def solve() -> int:
price_per_bag = 13
total_revenue = 576
num_bags = total_revenue // price_per_bag
result = num_bags
return result
|
Fred is driving from one city to another. He drives 125 miles in 2.5 hours. How many miles will he have driven after 4 hours? | def solve() -> int:
distance = 125
time = 2.5
new_time = 4
speed = distance / time
new_distance = speed * new_time
result = new_distance
return result
|
A donut shop sells donuts for $1.50 each and muffins for $2.25 each. In one day, the shop sold 30 donuts and 10 muffins. How much money did the shop make in total? | def solve() -> int:
donut_price = 1.50
muffin_price = 2.25
num_donuts_sold = 30
num_muffins_sold = 10
total_donut_sales = donut_price * num_donuts_sold
total_muffin_sales = muffin_price * num_muffins_sold
total_sales = total_donut_sales + total_muffin_sales
result = total_sales
retur... |
Lily has been saving up for a makeup palette. For every 12 makeup items she buys, she gets a free palette. She has already gotten 2 free palettes. She is 6 makeup items away from another free palette. How many makeup items has she bought? | def solve() -> int:
items_per_palette = 12
free_palettes = 2
items_needed = 6
total_items = (free_palettes * items_per_palette) + items_needed
result = total_items
return result
|
Annabelle can make 16 toys in 4 hours. How many toys can she make in 10 hours? | def solve() -> int:
toys_made_in_hours = 16 / 4
total_hours = 10
toys_in_total_hours = toys_made_in_hours * total_hours
result = toys_in_total_hours
return result
|
Student: Sarah needs to buy a total of 72 pens for 3 of her classes. How many pens does Sarah need to buy for each class? | def solve() -> int:
total_pens = 72
num_classes = 3
pens_per_class = total_pens // num_classes
result = pens_per_class
return result
|
In a store, there are 15 more apples than oranges. If there are a total of 60 fruits in the store, and the oranges, whose number is 2/5 of the total number of fruits, each weigh 0.5 kg, what is the total weight of the oranges in the store? | def solve() -> int:
total_fruits = 60
oranges_ratio = 2/5
oranges = total_fruits * oranges_ratio
apples = oranges + 15
orange_weight = 0.5
total_orange_weight = oranges * orange_weight
result = total_orange_weight
return result
|
A grocery store has a pile of watermelons. If 4 were sold, it would leave them with half as many watermelons as if they started with 16. How many watermelons are in the pile? | def solve() -> int:
initial_watermelons = 0
sold_watermelons = 4
remaining_watermelons = 0
remaining_watermelons = (16 * 2) - sold_watermelons
initial_watermelons = remaining_watermelons + sold_watermelons
result = initial_watermelons
return result
|
If Gina ran for 30 minutes at a rate of 8 km/h, how much time in minutes would it take her to run 16 km at the same speed? | def solve() -> int:
time_1 = 30
rate_1 = 8
distance_1 = rate_1 * (time_1 / 60)
distance_2 = 16
time_2 = (distance_2 / rate_1) * 60
result = time_2
return result
|
Student: Mrs. Lee’s class raised $4500 for a class trip, which is $500 less than the amount raised by Mr. Rogers’ class. Mr. Roger’s class raised 5/9 of the total amount raised by the school. How much money did the school raise for the trip if 7% will be deducted for administration fees? | def solve() -> int:
mr_rogers_class_raised = 0
mrs_lees_class_raised = 4500
school_raised = 0
admin_fees = 0.07
mr_rogers_class_raised = mrs_lees_class_raised + 500
school_raised = mr_rogers_class_raised / (5/9)
result = school_raised * (1 - admin_fees)
return result
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.