question stringlengths 11 2.89k | code stringlengths 20 7.24k |
|---|---|
A store has 75 shirts. There are twice as many blue shirts as red shirts and three times as many green shirts as blue shirts. How many green shirts are there? | def solve() -> int:
red_shirts = 75/7
blue_shirts = 2*red_shirts
green_shirts = 3*blue_shirts
result = green_shirts
return result
|
Claire wants to buy a new bike. She already has $300 saved up and the bike costs $350. She decides that to make the last of the money she will babysit for people in the neighborhood. She charges $10 per hour and then 15% of the price of any toys she has to buy to entertain the kids. If she babysits for 25 hours and has... | def solve() -> int:
hours_babysitting = 25
hourly_rate = 10
toys_percentage = 0.15
savings = 300
bike_cost = 350
total_earned = hours_babysitting * hourly_rate
toys_cost = (total_earned - savings) * toys_percentage
result = toys_cost
return result
|
A car travels at a speed of 60 km/hr. How long will it take to travel a distance of 150 km? | def solve() -> int:
distance = 150
speed = 60
time = distance/speed
result = time
return result
|
Sally has a budget of $300 to buy clothes. She bought a dress for $80 and a pair of shoes for $50. How much money can Sally spend on the rest of her clothes? | def solve() -> int:
budget = 300
dress_cost = 80
shoe_cost = 50
money_spent = dress_cost + shoe_cost
remaining_money = budget - money_spent
result = remaining_money
return result
|
In 11 years, Caleb will be five times as old as Olivia. If Olivia is currently 8 years old, how old is Caleb now? | def solve() -> int:
olivia_age = 8
years_passed = 11
caleb_age = (5 * (olivia_age + years_passed)) - years_passed
result = caleb_age
return result
|
Student: A group of friends went to a restaurant and the bill was $150. If everyone pays an equal share and there were 8 people in the group, how much did each person pay? | def solve() -> int:
bill = 150
people = 8
share = bill / people
result = share
return result
|
Ariana has 12 markers of different colors. She has 3 times as many blue markers as red markers. How many blue markers does Ariana have? | def solve() -> int:
markers = 0
blue_markers = 0
red_markers = 0
markers = 12
blue_markers = red_markers * 3
result = blue_markers
return result
|
Emma is redecorating her room. She paints one wall yellow, one wall blue, and then paints the remaining walls green. If her room has 4 walls, how many walls are painted green? | def solve() -> int:
yellow_walls = 1
blue_walls = 1
total_walls = 4
green_walls = total_walls - yellow_walls - blue_walls
result = green_walls
return result
|
Student: Zoe and Tom went on a hike on a one-sixth mile circular trail. Zoe completed 30 laps in 2 hours, while Tom, who was carrying a heavy backpack, only completed 80% of the laps that Zoe did. What was Tom's average speed in miles per hour? | def solve() -> int:
trail_length = 1/6
zoe_laps = 30
zoe_time = 2
tom_laps = 0.8 * zoe_laps
tom_time = None
tom_speed = None
tom_time = tom_laps * zoe_time / zoe_laps
tom_speed = trail_length * tom_laps / tom_time
result = tom_speed
return result
|
A train covers a distance of 720 km in 8 hours. If it maintains a uniform speed, how much distance will it cover in 3 hours? | def solve() -> int:
distance = 720
time = 8
speed = distance / time
new_time = 3
new_distance = speed * new_time
result = new_distance
return result
|
A rectangle has a length of 10 cm and a width of 6 cm. What is the area of the rectangle? | def solve() -> int:
length = 10
width = 6
area = length * width
result = f'<<<{area}>>>'
result = area
return result
|
Jack has 400 quarters. Jack gives 75 quarters to Mia, and he gives half as many quarters to Sarah as he gave to Mia. How many more quarters does Mia have than Sarah? | def solve() -> int:
jack_quarters = 400
mia_quarters = 75
sarah_quarters = mia_quarters / 2
mia_total_quarters = mia_quarters + sarah_quarters
sarah_total_quarters = sarah_quarters
difference_quarters = mia_total_quarters - sarah_total_quarters
result = differen... |
Leo bought 2 packs of crayons for his art class. Each pack contains 24 crayons. He used 8 crayons of the first pack and 12 crayons of the second pack. How many crayons did he have left? | def solve() -> int:
crayons_bought = 2 * 24
crayons_used = 8 + 12
crayons_left = crayons_bought - crayons_used
result = crayons_left
return result
|
A family goes on vacation and stays at a hotel for 5 days, the hotel room costs $80 per day. They also visit 2 famous tourist spots, each with a $40 entrance fee. Determine the total expenses of the family. | def solve() -> int:
hotel_cost_per_day = 80
number_of_days = 5
entrance_fee_per_spot = 40
number_of_spots = 2
hotel_expenses = hotel_cost_per_day * number_of_days
entrance_fees = entrance_fee_per_spot * number_of_spots
total_expenses = hotel_expenses + entrance_fees
r... |
cott earns $1000 per week and spends 10% on food, 30% on rent and has $200 left to save, how much does Scott save per week? | def solve() -> int:
earnings = 1000
spent_on_food = earnings * 0.1
spent_on_rent = earnings * 0.3
saved = 200
total_spent = spent_on_food + spent_on_rent
result = saved - total_spent
return result
|
Mary has 40 apples and John has 27 apples. How many more apples does Mary have than John? | def solve() -> int:
apples_mary = 40
apples_john = 27
result = apples_mary - apples_john
return result
|
John is making a quilt out of a rectangular piece of fabric. He cuts a 4 foot by 5 foot rectangle for the top, a 3 foot by 5 foot rectangle for the bottom, and a 2 foot by 3 foot rectangle for the border. If the bolt of fabric is 12 feet by 10 feet, how much fabric is left in square feet? | def solve() -> int:
fabric_for_top = 4 * 5
fabric_for_bottom = 3 * 5
fabric_for_border = 2 * 3
total_fabric_needed = fabric_for_top + fabric_for_bottom + fabric_for_border
bolt_of_fabric = 12 * 10
fabric_left = bolt_of_fabric - total_fabric_needed
result = fabric_left
return result
|
Student: Liam had 240 marbles and he wanted to play a game with his sister. He agreed to give his sister 10 marbles for every marble he lost to her. After the game, he had 180 marbles left. How many marbles did his sister win from him? | def solve() -> int:
marbles_liam = 240
marbles_sister = 0
marbles_liam_left = 180
marbles_sister = (marbles_liam - marbles_liam_left) * 10
result = marbles_sister
return result
|
A store is offering a discount of 20% on an item that costs $50. How much will you pay for this item? | def solve() -> int:
original_price = 50
discount = 0.2
final_price = original_price * (1 - discount)
result = final_price
return result
|
Q4: A carpenter had to make 10 wood boxes. Each box has a base of 10x10 cm and a height of 20 cm. How many pieces of wood does he need to make 10 boxes? | def solve() -> int:
length_of_box = 10
height_of_box = 20
number_of_boxes = 10
sides_w_l = length_of_box * height_of_box
total_area = sides_w_l * 6
total_pieces_wood = total_area * number_of_boxes
result = total_pieces_wood
return result
|
Student: A box contains 25 chocolates, of which 5 are dark chocolate. What percentage of chocolates are not dark? | def solve() -> int:
total_chocolates = 25
dark_chocolates = 5
not_dark_chocolates = total_chocolates - dark_chocolates
percentage = (not_dark_chocolates / total_chocolates) * 100
result = percentage
return result
|
A car travels 120 miles in 2 hours. What is the average speed of the car in miles per hour? | def solve() -> int:
distance = 120
time = 2
speed = distance / time
result = speed
return result
|
A pizza is cut into 8 equal slices. If four people share the pizza, how many slices does each person get? | def solve() -> int:
slices_per_pizza = 8
people = 4
slices_per_person = slices_per_pizza / people
result = slices_per_person
return result
|
A square room has a perimeter of 32 feet. What is the area of the room? | def solve() -> int:
side_length = 8
area = side_length ** 2
result = area
return result
|
Tom has two times as many stickers as Jack. All together they have 84 stickers. How many stickers does Jack have? | def solve() -> int:
total_number_of_stickers = 84
jack_stickers = total_number_of_stickers / 3
result = jack_stickers
return result
|
Nora, Omar and Pam entered their horses in the Wild West Derby. Nora's horse finished the race in 6 minutes. Omar's horse finished 1 minute quicker than Nora's. Pam's horse took twice as long as Omar's horse. How long did it take Pam's horse to finish the race? | def solve() -> int:
nora_time = 6
omar_time = nora_time - 1
pam_time = omar_time * 2
result = pam_time
return result
|
Maya baked cookies for a party. She baked 15 cookies on the first day, and each day she baked twice as many cookies as the day before. But her cat, Leo, ate one-third of the cookies every other day. How many cookies does Maya have left at the end of 6 days? | def solve() -> int:
cookies_baked = 15
cookies_left = cookies_baked
for day in range(2, 7):
if day % 2 == 0:
cookies_eaten = cookies_left / 3
cookies_left -= cookies_eaten
cookies_baked *= 2
cookies_left += cookies_baked
result = cookies_left
... |
At a carnival, the ratio of cotton candy stands to popcorn stands is 3:2. If there are 15 cotton candy stands, how many popcorn stands are there? | def solve() -> int:
cotton_candy_stands = 15
ratio = 3/2
popcorn_stands = cotton_candy_stands / ratio
result = popcorn_stands
return result
|
A hardware store is selling hammers for $15 each. It costs $10 to make each hammer, and the money from the hammers will be used to buy nails, which cost $1 per nail. How many hammers must be sold to buy 200 nails? | def solve() -> int:
nails_to_buy = 200
cost_per_hammer = 10
selling_price_per_hammer = 15
cost_per_nail = 1
hammers_to_sell = (nails_to_buy * cost_per_nail) / (selling_price_per_hammer - cost_per_hammer)
result = hammers_to_sell
return result
|
Student: The length of a rectangle is 7cm more than its width. If the width is 4cm, calculate the perimeter of the rectangle. | def solve() -> int:
width = 4
length = width + 7
perimeter = 2 * (width + length)
result = perimeter
return result
|
A movie theater can hold 200 people. If tickets are sold at $12 per person for a sold-out show, what is the total revenue of the theater? | def solve() -> int:
total_capacity = 200
ticket_price = 12
total_revenue = total_capacity * ticket_price
result = total_revenue
return result
|
A car traveled 360 miles in 5 hours. If it traveled at a constant speed, how far can it travel in 8 hours? | def solve() -> int:
miles_per_hour = 360 / 5
hours = 8
distance = miles_per_hour * hours
result = distance
return result
|
Lisa went to the flower shop. She had €40 and bought 5 bundles of roses for €6 each, lilies for €10, and a vase for €5. How much money does Lisa have left? | def solve() -> int:
bundles_of_roses = 5
price_per_bundle_of_roses = 6
lilies = 1
price_per_lily = 10
vase = 1
price_of_vase = 5
total_cost_of_roses = bundles_of_roses * price_per_bundle_of_roses
total_cost_of_lilies = lilies * price_per_lily
total_cost_of_vase = vase * price_of... |
Susan has 6 more apples than Jack. Together they have 24 apples. How many apples does Susan have? | def solve() -> int:
total_apples = 24
jacks_apples = (total_apples - 6) / 2
susans_apples = jacks_apples + 6
result = susans_apples
return result
|
A grocery store has a total of 400 bottles, each containing 500 ml of juice. How many liters of juice does the store have in total? | def solve() -> int:
bottles = 400
volume_per_bottle = 500
total_volume = bottles * volume_per_bottle
total_liters = total_volume/1000
result = total_liters
return result
|
Alice and Bob have a total of 70 candies. Alice has three times as many candies as Bob and they both have an equal number of chocolate candies. If Bob has 12 chocolate candies, how many chocolate candies does Alice have? | def solve() -> int:
bob_choco_candies = 12
total_candies = 70
bob_candies = (total_candies - bob_choco_candies) / 4
alice_candies = bob_candies * 3
alice_choco_candies = total_candies / 2 - alice_candies
result = alice_choco_candies
return result
|
In a school of 40 students, 60% are girls. How many boys are there in the school? | def solve() -> int:
total_students = 40
girl_percentage = 60
boys_percentage = 100 - girl_percentage
boys_count = (boys_percentage/100) * total_students
result = boys_count
return result
|
In a theatre, there are 4 rows with 12 chairs in each row. How many chairs are there in the theatre? | def solve() -> int:
rows = 4
chairs_per_row = 12
total_number_of_chairs = rows * chairs_per_row
result = total_number_of_chairs
return result
|
A rectangle has sides of length 4 cm and 8 cm. What is its perimeter? | def solve() -> int:
side1 = 4
side2 = 8
perimeter = 2 * (side1 + side2)
result = perimeter
return result
|
Julie's job has her on a regular 50-hour work week, but she also earns time and a half for any hour worked on holidays. If she earned $1200 (before taxes) in one week and worked 8 hours on a holiday, what is her hourly rate on holidays? | def solve() -> int:
regular_hours = 50
total_hours = regular_hours + 8
regular_pay_rate = 1200 / regular_hours
holiday_pay_rate = regular_pay_rate * 1.5
hourly_rate_on_holidays = holiday_pay_rate
result = hourly_rate_on_holidays
return result
|
Yesterday, Sean lifted 10-pound weights for 20 reps. He plans to add 5 pounds to his weights every day for the next 3 days. How many pounds will Sean lift on the second day? | def solve() -> int:
weight = 10
reps = 20
day = 1
while day <= 3:
weight += 5
day += 1
second_day_weight = weight - 5
result = second_day_weight
return result
|
Elsa had 400 sweets and she distributed them in 4 bags with an equal number of sweets in each bag. How many sweets did she have in each bag? | def solve() -> int:
total_sweets = 400
total_bags = 4
result = total_sweets/total_bags
return result
|
Rachel hiked up a mountain and then hiked down the same path. She hiked up the mountain at a rate of 3 kilometers per hour and hiked down at a rate of 4 kilometers per hour. If she hiked up for five hours, how many total kilometers did she hike? | def solve() -> int:
SPEED_UP = 3
SPEED_DOWN = 4
TIME_HIKED = 5
TOTAL_KILOMETERS = (SPEED_UP * TIME_HIKED) + (SPEED_DOWN * TIME_HIKED)
result = TOTAL_KILOMETERS
return result
|
san and Bob went to a store and spent $22 in total. If Susan paid 8 dollars more than Bob, How much did Bob pay? | def solve() -> int:
total_cost = 22
difference = 8
money_bob = total_cost - difference
result = money_bob
return result
|
James has 60 bottles of water, each of which contains 19 litres of water. How much water does James have in total? | def solve() -> int:
bottles = 60
water = bottles * 19
result = water
return result
|
A pet store is closing down and needs to sell all of its remaining stock. They have 800 different types of pets which were originally priced at $50 each. They are giving a 60% discount and were able to sell 95% of the pets. If they owed $20,000 to their vendors, how much money do they have left after the sale? | def solve() -> int:
pets = 800
original_price = 50
discount = 0.6
sold_percentage = 0.95
owed_to_vendors = 20000
total_price = pets * original_price
discounted_price = total_price * discount
total_sold_price = discounted_price * sold_percentage
money_left = total_sold_price - ow... |
A building has 20 floors. If there are 10 apartments on each floor, how many apartments are in the building? | def solve() -> int:
apartments_per_floor = 10
total_floors = 20
total_apartments = apartments_per_floor * total_floors
result = total_apartments
return result
|
Student: Mark bought 5 pens at $1 each and 4 notebooks each costing $3.50. How much money did Mark spend? | def solve() -> int:
num_pens = 5
pen_cost = 1
num_notebooks = 4
notebook_cost = 3.5
total_pen_cost = num_pens * pen_cost
total_notebook_cost = num_notebooks * notebook_cost
total_cost = total_pen_cost + total_notebook_cost
result = total_cost
return result
|
arah earns 26 dollars per hour and she is told that 19 percent of her pay will be taken to pay taxes, unemployment insurance, and social security. How much does Sarah have to pay in taxes and social security if she works 5 days a week for 40 hours a week for 46 weeks in a year? | def solve() -> int:
hourly_wage = 26
hours_per_week = 40*5
weeks_per_year = 46
tax_percent = 19/100
gross_annual_pay = hourly_wage * hours_per_week * weeks_per_year
yearly_tax_and_socialSecurity = gross_annual_pay * tax_percent
result = yearly_tax_and_socialSecurity
return result... |
Student: Julie bought a $14 mug and a coaster which cost $2.25 less. If she bought 4 mugs and 6 coasters, how much did Julie pay in all? | def solve() -> int:
mug_price = 14
coaster_price = mug_price - 2.25
total_cost = (4 * mug_price) + (6 * coaster_price)
result = total_cost
return result
|
Q1: The price of a PC is 800 dollars. Bill buys 16 such PCs and pays with a discount of 10 % on the total. How much did Bill pay in total? | def solve() -> int:
price_for_each_PC = 800;
number_of_PCs = 16;
discount_percentage = 10;
discount = price_for_each_PC * number_of_PCs * discount_percentage/100;
total_price = price_for_each_PC * number_of_PCs - discount;
result = total_price
return result
|
Emma has 600 plush toys in her bedroom. To comfort her after a bad day, her parents and her best friend, Lily, buy her more plush toys. Lily gives Emma 5 more toys than twice the amount of toys Emma's parents gave her. Her parents gave her 32 toys. How many plush toys does Emma have now? | def solve() -> int:
initial_toys = 600
lily_toys = 0
parent_toys = 32
lily_toys = 2 * parent_toys + 5
total_toys = initial_toys + lily_toys + parent_toys
result = total_toys
return result
|
John can run 6 miles per hour. If he runs for 2.5 hours, how many miles has he run? | def solve() -> int:
speed = 6
time = 2.5
distance = speed * time
result = distance
return result
|
How much would it cost to buy 50 pens costing $5 each? | def solve() -> int:
total = 0
for i in range(50):
total = total + 5
result = total
return result
|
Ava and her friend James decided to start a jewelry collection. Ava has 50 pieces of jewelry, 1/2 of which are silver. James has one-third as many silver pieces as Ava and 13 more gold pieces than Ava. How many pieces of jewelry in total do the two have? | def solve() -> int:
ava_jewelry = 50
ava_silver = ava_jewelry / 2
james_silver = ava_silver / 3
james_gold = ava_jewelry + 13
total_jewelry = ava_jewelry + james_silver + james_gold
result = total_jewelry
return result
|
Jane has a square and a circle. The area of the square is 64 and the area of the circle is 100. What is the ratio of the area of the circle to the area of the square? | def solve() -> int:
area_square = 64
area_circle = 100
ratio = area_circle/area_square
result = ratio
return result
|
A student studies for 10 hours a day for 7 days before taking an exam. The results processing takes 2 days. Finally, the student needs 3 days to recover from the stress. If the student is planning to take another exam in 2 weeks, then when should the student have started their studies for the first exam? | def solve() -> int:
days_studying = 7
hours_per_day = 10
processing_time = 2
recovery_time = 3
weeks_between_exams = 2
total_days_needed = days_studying + processing_time + recovery_time
total_days_between_exams = weeks_between_exams * 7
start_day = total_days_between_exams - t... |
The ages of Tom and Jack are in the ratio of 2:3. In 10 years, the sum of their ages will be 70. How old is each one now? | def solve() -> int:
tom = 2
jack = 3
sum_age = 70 - (tom+jack)*10
total_ratio = tom + jack
tom_age = sum_age*(tom/total_ratio)
jack_age = sum_age*(jack/total_ratio)
result = tom_age+10, jack_age+10
return result
|
Student: A company produces a gadget with a cost of $70 per unit. If they sell the gadget for $120 each, what is the markup percentage? | def solve() -> int:
cost_per_unit = 70
selling_price = 120
markup = selling_price - cost_per_unit
markup_percentage = (markup / cost_per_unit) * 100
result = markup_percentage
return result
|
The math committee wants to raise funds for a field trip and has decided to sell t-shirts. If there are 54 members in the math committee and the shirt costs $20 each, how much money can they raise? | def solve() -> int:
num_members = 54
cost_shirt = 20
total_revenue = num_members * cost_shirt
result = total_revenue
return result
|
Ben sells hot dogs at a baseball game. He earns a commission of 10% of his sales, plus a flat fee of $20. If he sells $300 worth of hot dogs in a day, how much does he make in total? | def solve() -> int:
commission = 300 * 0.1
total_earnings = commission + 20
result = total_earnings
return result
|
Noah is collecting stickers for his album. He needs 80 stickers to complete his album. He buys a pack of 10 stickers for $2. He already has 36 stickers and he has $10 to spend. How many more packs of stickers does he need to buy to complete his album? | def solve() -> int:
sticker_goal = 80
stickers_per_pack = 10
pack_cost = 2
sticker_count = 36
money = 10
stickers_needed = sticker_goal - sticker_count
packs_needed = stickers_needed / stickers_per_pack
packs_needed = int(packs_needed) + 1
result = packs_needed
... |
Tyler goes to the store and picks up 2/3 of the items on his list. His list contains 14 items. How many items did he pick up? | def solve() -> int:
items_on_list = 14
ratio_picked_up = 2/3
items_picked_up = items_on_list * ratio_picked_up
result = items_picked_up
return result
|
Dana wants to buy some candy from the vending machine. She has 10 quarters and 5 dimes. The candy costs 75 cents. How many candies can she buy and how much change will she have left? | def solve() -> int:
quarter_value = 0.25
dime_value = 0.1
total_money = 10 * quarter_value + 5 * dime_value
candy_cost = 0.75
number_of_candies = total_money // candy_cost
change = total_money - number_of_candies * candy_cost
result = (number_of_candies, change)
return result
|
A dress originally cost $80, but then went on sale for 30% off. After this sale, a store offered another 10% off. What is the final price of the dress? | def solve() -> int:
originalPrice = 80
percentSale = 30
priceAfterFirstSale = originalPrice - ((percentSale/100)*originalPrice)
percentSecondDiscount = 10
priceAfterSecondSale = priceAfterFirstSale - ((percentSecondDiscount/100)*priceAfterFirstSale)
result = priceAfterSecondSale
return resul... |
If a ride on the Ferris wheel takes 6 minutes, how many revolutions can it make in 5 hours? | def solve() -> int:
time = 5 * 60
ride_time = 6
revolutions = time // ride_time
result = revolutions
return result
|
Student: Tommy ran 10 miles in 50 minutes. What is his average speed in miles per hour? | def solve() -> int:
distance = 10
time = 50
time_in_hours = time / 60
average_speed = distance / time_in_hours
result = average_speed
return result
|
Jenna wrote twice as many pages as her study partner Sophia. Sophia wrote 20 pages. How many pages did Jenna write? Emily, Ryan, and Scott want to fill a pool with water. Each person uses a different water hose with different flow rates, and they only have 2 hours to fill the pool. Emily can fill 12 gallons of water pe... | def solve() -> int:
sophia_pages = 20
jenna_pages = sophia_pages * 2
emily_rate = 12
ryan_rate = 8
scott_rate = 4
total_time = 120
emily_filled = emily_rate * 120
ryan_filled = ryan_rate * 120
scott_filled = scott_rate * 90
total_filled = emily_filled + ryan_fille... |
A courier delivered 140 packages today and half of those yesterday. How many packages should be delivered tomorrow to make it a total of 200 packages delivered? | def solve() -> int:
p1 = 140
total = 200
p2 = int(p1/2)
result = total - p1 - p2
return result
|
Nachi has 15 pencils and 25 pens. How many writing implements does she have in total? | def solve() -> int:
totalimplements = 0
totalimplements = totalimplements + 15
totalimplements = totalimplements + 25
result = totalimplements
return result
|
Jenna is buying two handbags from a luxury store. The store is offering a deal where the second handbag is 30% off its full price if someone purchases the first at full price. If the first handbag is $250 and the second handbag is $200, how much will Jenna spend in total, in dollars? | def solve() -> int:
first_handbag_price = 250
second_handbag_price = 200
discount = 30 / 100
discounted_price = second_handbag_price * (1 - discount)
total_price = first_handbag_price + discounted_price
result = total_price
return result
|
Alice is making a smoothie. She uses 2 cups of strawberries, 1/2 cup of yogurt and 1 cup of milk. If each glass takes 1/3 cup of smoothie and she plans to make 9 glasses, how much smoothie will Alice need? | def solve() -> int:
strawberries = 2
yogurt = 1/2
milk = 1
glasses = 9
smoothie_per_glass = 1/3
total_smoothie = (strawberries + yogurt + milk) * glasses * smoothie_per_glass
result = total_smoothie
return result
|
A store has a total of 100 items for sale. Each item costs $50. If 30% of the items are sold, how much revenue is generated? | def solve() -> int:
total_items = 100
item_cost = 50
percent_sold = 30
revenue_generated = (total_items * item_cost) * (percent_sold/100)
result = revenue_generated
return result
|
Student: A fruit stand has 50 apples, 100 oranges, and 75 bananas. If you buy 2 apples, 3 oranges, and 1 banana, how much would you pay? | def solve() -> int:
apples = 50
oranges = 100
bananas = 75
apple_price = 2
orange_price = 3
banana_price = 1
total_apple_price = apple_price * 2
total_orange_price = orange_price * 3
total_banana_price = banana_price * 1
total_price = total_apple_price + total_orange_price + tota... |
A company produces 360 boxes of chocolates in 9 hours. How many boxes of chocolates will the company produce in 21 hours? | def solve() -> int:
chocolate_boxes_per_hour = 360 / 9
chocolate_boxes_in_21hours = chocolate_boxes_per_hour * 21
result = chocolate_boxes_in_21hours
return result
|
A car salesman works for a week and has a plan of 7 days. The company will pay him for 5 days of work, and he will get two days of paid leave. What will be his lost wages if his hourly payment is $12, and he works 9 hours a day? | def solve() -> int:
days_worked = 5
days_leave = 2
hourly_payment = 12
hours_per_day = 9
total_hours_worked = days_worked * hours_per_day
total_hours_leave = days_leave * hours_per_day
total_wages = total_hours_worked * hourly_payment
lost_wages = total_hours_leave * hourly_pay... |
The price of a book is $10. If a store sells 345 books. How much money does the store make? | def solve() -> int:
price_per_book = 10
books_sold = 345
total_money_made = price_per_book * books_sold
result = total_money_made
return result
|
A company produces 2000 pencils per day. How many pencils can they produce in a week? | def solve() -> int:
daily_production = 2000
days_per_week = 7
weekly_production = daily_production * days_per_week
result = weekly_production
return result
|
Mary is a gardener and can plant 100 seeds in an hour. The flower bed she is working on has 2000 spots for seeds. How many hours will it take her to plant all the seeds? | def solve() -> int:
seeds_per_hour = 100
spots_for_seeds = 2000
hours_to_plant_all_seeds = spots_for_seeds / seeds_per_hour
result = hours_to_plant_all_seeds
return result
|
A hospital has enough medicine to treat 800 patients for 60 days. After 10 days, 160 patients are discharged. How many more days can the remaining patients be treated with the available medicine? | def solve() -> int:
total_patients = 800
days = 60
remaining_patients = total_patients - 160
remaining_days = (days - 10) * (remaining_patients / total_patients)
result = remaining_days
return result
|
A car travels a distance of 300 miles in 5 hours. What is the average speed of the car? | def solve() -> int:
distance = 300
time = 5
avg_speed = distance / time
result = avg_speed
return result
|
Student: Tim has $4000 in his bank account. He spent 50% on paying off his credit card debt and then he lent $500 to his brother. After lending the money, he spent one-third of the remaining money on a new laptop. How much money does he have left? | def solve() -> int:
total = 4000
debt = 0.5 * total
loan = 500
laptop = (total - debt - loan) / 3
left = total - debt - loan - laptop
result = left
return result
|
A car rental company has 300 cars. If 25% of its rental fleet is currently rented out, and each rented car stays for 3 days, how many cars are currently rented out? | def solve() -> int:
total_cars = 300
rented_out_cars_percentage = 0.25
cars_rented_out = total_cars * rented_out_cars_percentage
days_rented_out = cars_rented_out * 3
result = int(cars_rented_out)
return result
|
An epidemiologist believes that one in every 50 people is affected by a rare genetic disorder. If a city's population is 200,000, how many people are likely to have the disorder? | def solve() -> int:
population = 200000
probability = 1 / 50
affected_people = population * probability
result = affected_people
return result
|
Student: Stella collects stickers. She has 120 stickers in her album. She buys a pack of 10 stickers every week and puts them in her album. She also trades some stickers with her friends. On the first week, she traded 5 stickers. On the second week, she traded 10% more stickers than on the first week. On the third week... | def solve() -> int:
stickers = 120
pack = 10
trade_1 = 5
trade_2 = trade_1 * 1.1
trade_3 = trade_2 * 0.8
stickers = stickers + pack - trade_1
stickers = stickers + pack - trade_2
stickers = stickers + pack - trade_3
result = stickers
return result
|
A book has an average of 400 pages. If one person reads 20 pages every day, how many days will it take them to finish the book? | def solve() -> int:
pages_per_book = 400
pages_per_day = 20
total_days = pages_per_book / pages_per_day
result = total_days
return result
|
Sally has 80 stickers. If she gives away 1/4 of them and is then left with 60, how many stickers did Sally have before giving away some? | def solve() -> int:
stickers_left = 60
x = 80 - stickers_left
stickers_original = 80 + x
result = stickers_original
return result
|
Charlie has 60 marbles on Monday. On Tuesday, he loses one-fifth of his marbles while playing with his friends. On Wednesday, he finds 12 more marbles on the street. If he can trade each marble for $0.10, how much money can he get if he trades all of his marbles? | def solve() -> int:
marbles_monday = 60
marbles_lost = marbles_monday / 5
marbles_found = 12
value_per_marble = 0.10
marbles_left = marbles_monday - marbles_lost + marbles_found
total_value = marbles_left * value_per_marble
result = total_value
return result
|
Student: Lena spends 40% of her allowance on clothes and 25% on lunch. What percentage of her allowance is left? | def solve() -> int:
spent_on_clothes = 0.4
spent_on_lunch = 0.25
total_spent = spent_on_clothes + spent_on_lunch
result = 1 - total_spent
return result
|
To make a cake, Lisa has to use 40% more flour than the recipe calls for. If the recipe calls for 3 cups of flour, how many cups of flour does she have to use? | def solve() -> int:
increase = 0.4 * 3
cake = 3 + increase
result = cake
return result
|
In a classroom with a total of 150 students, the number of boys is four times the number of girls. How many boys are in the classroom? | def solve() -> int:
total_students = 150
boys = total_students // 5
girls = total_students - boys
result = boys
return result
|
Leo can make 15 bracelets in 12 hours. At this same rate, how many bracelets could he make in 5 days? | def solve() -> int:
rate = 15 / 12
hours = 5 * 24
bracelets = rate * hours
result = bracelets
return result
|
If a population increases by 10% from 800, what is the new population? | def solve() -> int:
increase = 800 * 0.1
new_population = 800 + increase
result = new_population
return result
|
Ellie has 18 stickers in her album. She buys five more from a shop and then trades three of them with her friend Fiona. Fiona has twice as many stickers as Ellie had before buying and also gives away four of them to another friend. How many stickers do Ellie and Fiona have after trading and giving? | def solve() -> int:
ellie_stickers = 18 + 5 - 3
fiona_stickers = 2 * 18
ellie_stickers = ellie_stickers + 3
fiona_stickers = fiona_stickers - 4 - 3
result = ellie_stickers, fiona_stickers
return result
|
cott has 10 $50 bills and 20 nickels. Julie has 7 $20 bills and 40 pennies. How much more money does Scott have than Julie? | def solve() -> int:
scott_50s = 10
scott_nickels = 20
julie_20s = 7
julie_pennies = 40
scott_total = (scott_50s*50)+(scott_nickels/20)
julie_total = (julie_20s*20)+(julie_pennies/100)
difference = scott_total - julie_total
result = difference
return result
|
- A bucket can hold 4 liters of water. A tap can fill the bucket in 2 minutes. A hole at the bottom of the bucket can empty the bucket in 6 minutes. How long, in minutes, will it take to fill the bucket completely if the tap and the hole are both open? | def solve() -> int:
fill_rate = 4 / 2
empty_rate = 4 / 6
net_rate = fill_rate - empty_rate
time = 4 / net_rate
result = time
return result
|
John ordered a pizza from his favorite pizza restaurant. The cost of a pizza is directly proportional to its size, and it costs $6 for a 10 inch pizza at this restaurant. If John wants to order a 15 inch pizza, how much will it cost him? | def solve() -> int:
pizza_cost_per_inch = 6/10
pizza_size = 15
total_pizza_cost = pizza_cost_per_inch * pizza_size
result = total_pizza_cost
return result
|
A car travels 180 miles in 3 hours and 20 minutes. What is the average speed of the car in miles per hour? | def solve() -> int:
miles = 180
hours = 3 + (20/60)
speed = miles/hours
result = speed
return result
|
The craft store sells two kinds of yarn. The wool yarn costs $4.50 per skein and the cotton yarn costs $3.75 per skein. A knitter buys 5 skeins of wool yarn and 6 skeins of cotton yarn. What was the total cost, in dollars, of the yarn she bought? | def solve() -> int:
wool_cost = 4.5
cotton_cost = 3.75
wool_skeins = 5
cotton_skeins = 6
wool_total = wool_cost * wool_skeins
cotton_total = cotton_cost * cotton_skeins
total_cost = wool_total + cotton_total
result = total_cost
return result
|
In a bakery, there are 60 cakes. 25 of them are chocolate cakes, and each chocolate cake sells for $8. The rest are vanilla cakes, and each vanilla cake sells for $6. How much money can the bakery make if it sells all the cakes? | def solve() -> int:
total_cakes = 60
chocolate_cakes = 25
chocolate_price = 8
vanilla_price = 6
vanilla_cakes = total_cakes - chocolate_cakes
chocolate_revenue = chocolate_cakes * chocolate_price
vanilla_revenue = vanilla_cakes * vanilla_price
result = chocolate_reven... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.