acnagle/gsm8k-filtered huggingface dataset:
Val has three times as many dimes as nickels.

Question: If she accidentally finds twice as many nickels as she has in her older brother's treasure box, and takes them for herself, what would be the value of money she has, in dollars, if she had 20 nickels before finding the new ones from her brother's treasure box?
Answer: If Val currently has 20 nickels and finds twice as many nickels as she has in her older brother's treasure box, she will have 2*20=40 more nickels.
The total number of nickels she'll have is 40+20=<<40+20=60>>60
Since nickel is worth $0.05, the value of the nickels Val is having is 60*0.05=$<<60*0.05=3>>3
Val had three times as many dimes as nickels before she found the 40 new nickels, a total of 3*20=<<3*20=60>>60 dimes
Since a dime has a value of $0.10, the value of the dimes that Val has is 60*$0.10=$<<60*0.10=6>>6
Together, the value of the dimes and nickels Val has is worth $6+$3=$<<6+3=9>>9
#### 9
There were some snowflakes at first. It snowed an additional 4 snowflakes every 5 minutes.

Question: If there were 58 snowflakes after 1 hour, how many snowflakes were there at first?
Answer: There are 60/5=<<60/5=12>>12 5-minute intervals in 1 hour.
12*4=<<12*4=48>>48 snowflakes fell in 1 hour.
There were 58-48=<<58-48=10>>10 snowflakes at first.
#### 10
Annie has 6 barrettes, twice as many scrunchies as barrettes, and three fewer bobby pins than barrettes.

Question: What percentage of her hair decorations are bobby pins, rounded to the nearest percent?
Answer: First find the total number of scrunchies: 6 barrettes * 2 = <<6*2=12>>12 scrunchies
Then subtract three fewer bobby pins than barrettes 6-3 =<<6-3=3>>3 bobby pins
Then add the number of each type of hair decorations to find the total number: 6 decorations + 12 decorations + 3 decorations = <<6+12+3=21>>21 decorations
Then divide the number of bobby pins by the total number of decorations and multiply by 100% to express the answer as a percentage: 3 bobby pins / 21 decorations * 100% = 14.28 which rounds down to 14%
#### 14
Simeon drinks 64 fluid ounces of filtered water every day. He used to drink this water in 8-ounce-servings. But now, he drinks his water in 16-ounce servings.

Question: How many fewer servings per day does it now take Simeon to drink his water than it used to?
Answer: In 64 fluid ounces, there are 64/8=<<64/8=8>>8 eight-ounce servings.
Using 16-ounce servings, Simeon now drinks 64 ounces in 64/16=<<64/16=4>>4 servings.
Thus, Simeon now drinks his water in 8-4=<<8-4=4>>4 fewer servings per day.
#### 4
Lyra has an $80 budget for a week to spend on food. If she bought 1 bucket of fried chicken that costs $12 and 5 pounds of beef that cost $3 per pound.

Question: How much is left on her weekly budget?
Answer: Five pounds of beef cost $3 x 5 = $<<3*5=15>>15.
So Lyra spent a total of $12 + $15 = $<<12+15=27>>27.
Therefore, $80 - $27 = $<<80-27=53>>53 is left on her weekly budget.
#### 53
A bear is hunting for her cubs and herself. She needs 210 pounds of meat in a week. Each cub needs 35 pounds a week and she has 4 cubs. She hunts rabbits, which are five pounds each.

Question: If she hunts daily, how many rabbits does she need to catch each day?
Answer: The cubs need 140 pounds a week because 4 x 35 = <<4*35=140>>140
The family needs 350 pounds a week because 210 + 140 = <<210+140=350>>350
The family needs 50 pounds a day because 350 / 7 = <<350/7=50>>50
She needs to hunt 10 rabbits a day because 50 / 5 = <<10=10>>10
#### 10
While on vacation in Hawaii, Steve and Georgia decided to ship pineapples to their home. Each pineapple costs $1.25 and they buy a dozen. It will cost $21.00 to ship all of them to their home.

Question: How much will each pineapple end up costing them?
Answer: They bought 12 pineapples for $1.25 apiece so 12*1.25 = $<<12*1.25=15.00>>15.00
The pineapples cost $15.00 and it will cost $21.00 to ship so all total, it costs 15+21 = $<<15+21=36.00>>36.00
In total it costs $36.00 to ship home a dozen pineapples so each pineapple costs 36/12 = $<<36/12=3.00>>3.00 apiece
#### 3
Charles is jogging while listening to his favorite album. He runs at 6 MPH when he's got music on and 4 MPH when he doesn't. His album is 40 minutes long.

Question: How many minutes will it take him to jog 6 miles?
Answer: He runs at .1 miles per minute because 6 / 60 = <<6/60=.1>>.1
While the album is playing he can run 4 miles because 40 x .1 = <<40*.1=4>>4
He has to run 2 miles without the album because 6 - 4 = <<6-4=2>>2
Without music he runs 1/15 miles per minute because 4 / 60 = 1/15
He will run the remaining 2 miles in 30 minutes because 2 / (1/15) = <<2/(1/15)=30>>30
It will take him 70 minutes in total because 40 + 30 =<<40+30=70>>70
#### 70
Rory collects rainwater. He has 100 L of rainwater in his tank. During a heavy rainstorm, water flows into the tank at a rate of 2 L/min for 90 minutes.

Question: How much water is in the tank at the end of the heavy rain?
Answer: During the heavy rain, the tank collects 2 * 90 = <<2*90=180>>180 L of water
The tank has a total of 100 + 180 = <<100+180=280>>280 L of water
#### 280
Bryan's score on a math exam is 20. Jen scored 10 more than Bryan while Sammy scored 2 fewer than Jen.

Question: If the math exam has 35 points in all, how many mistakes did Sammy make?
Answer: Jen scored 20 + 10 = <<20+10=30>>30 on the exam.
Sammy scored two less, so his score was30 - 2 = <<30-2=28>>28.
Thus, Sammy made 35 - 28 = <<35-28=7>>7 mistakes.
#### 7
Mabel has 5 daisies in her garden, and each daisy has 8 petals.

Question: If she gives 2 daisies to her teacher, how many petals does she have on the remaining daisies in her garden?
Answer: The total number of petals Mabel has in her garden is 5 x 8 = <<5*8=40>>40 petals.
The total number of petals that Mabel gives to her teacher is 2 x 8 = <<2*8=16>>16 petals.
The total number of petals remaining in her garden is 40 - 16 = <<40-16=24>>24 petals.
#### 24
Nina has received a scholarship worth $8000 less than Kelly's amount. Kelly received a scholarship worth twice the amount Wendy received.

Question: How much money did they receive in scholarship together if Wendy received a scholarship worth $20000?
Answer: If Wendy received a scholarship worth $20000, Kelly, who received twice as much, received 2*$20000 = $40000
Together, Wendy and Kelly received Scholarship worth $40000+$20000 = $<<40000+20000=60000>>60000
Nina received a scholarship worth $8000 less than Kelly's amount, a total of $40000-$8000 = $32000
Together, the three received scholarship worth $32000+$60000 = $<<32000+60000=92000>>92000
#### 92000
On Thursday Walmart sold 210 pounds of ground beef. On Friday they sold twice that amount. On Saturday they only sold 150 pounds.

Question: What was the average amount of beef sold per day?
Answer: On Friday Walmart sold 2 * 210 pounds = <<2*210=420>>420 pounds.
For all three days Walmart sold 210 + 420 + 150 pounds = <<210+420+150=780>>780 pounds.
The average amount of beef sold per day is 780 pounds / 3 days = <<780/3=260>>260 pounds.
#### 260
Wilson decides to go sledding on some nearby hills. On the 2 tall hills, he sleds down them 4 times each and on the 3 small hills, he sled down them half as often as he sleds down the tall hills.

Question: How many times did he sled down the hills?
Answer: On the tall hills, he sleds down 2 tall hills * 4 times per tall hill = <<2*4=8>>8 times.
He sleds down the small hills half as often so he sleds down each hill 4 times per tall hill / 2 = <<4/2=2>>2 times per small hill.
On the small hills, he sleds down 3 small hills * 2 times per small hill = <<3*2=6>>6 times.
So in total, Wilson sled down the hills 8 times on tall hills + 6 times on small hills = <<8+6=14>>14 times.
#### 14
Bea and Dawn both have a lemonade stand. Bea sells her lemonade at 25 cents while Dawn sells hers at 28 cents.

Question: If Bea sold 10 glasses and Dawn sold 8 glasses, how much more money (in cents) did Bea earn than Dawn?
Answer: Bea's sales amount to $0.25/glass x 10 glasses = 250 cents.
Dawn's sales amount to $0.28/glass x 8 glasses = 224 cents.
So, Bea earned $2.50 - $2.24 = 26 cents more than Dawn.
#### 26
Whitney bought 9 books about whales and 7 books about fish. She also bought 3 magazines. Each book cost $11 and each magazine cost $1.

Question: How much did Whitney spend in all?
Answer: The total number of books is 9 books + 7 books = <<9+7=16>>16 books.
The cost of the books is $11/book × 16 books = $<<11*16=176>>176.
The cost of the magazines is $1/magazine × 3 magazines = $<<1*3=3>>3.
Whitney spent $3 + $176 = $<<3+176=179>>179 in all.
#### 179
Justin and Sabrina at Pine Grove Elementary have 50 pencils combined. Justin has 8 more than twice as many pencils as Sabrina.

Question: How many pencils does Sabrina have?
Answer: Let's say Sabrina has p number of pencils.
If Justin has 8 more than twice as many pencils as Sabrina, he has 2*p + 8 = 2p+8
Together, Justin and Sabrina has p +(2p+8)=50
This is equal to 3p=50-8
3p=42
The number of pencils that Sabrina has is p=42/3
Sabrina has p=<<14=14>>14 pencils
#### 14
Annie brought 20 brownies to school. She gave half of them to the school administrator to put in the faculty lounge. Of the remaining brownies, she gave half to her best friend, Carl, and another two to her friend, Simon.

Question: How many brownies did she have left?
Answer: She first gave away half of her 20 brownies, or 20/2=<<20/2=10>>10 brownies, to the faculty.
The remaining brownies number 20-10=<<20-10=10>>10 brownies.
She gave half of these remaining brownies, or 10/2=<<10/2=5>>5 brownies, to Carl.
This reduced her number from 10 down to 10-5=<<10-5=5>>5 brownies.
Finally, she gave away another 2, leaving her with 5-2=<<5-2=3>>3 brownies.
#### 3
Josh has 100 feet of rope. He cuts the rope in half, and then takes one of the halves and cuts it in half again. He grabs one of the remaining pieces and cuts it into fifths. He's stuck holding one length of the rope he's most recently cut.

Question: How long is it?
Answer: John starts with 100ft of rope that he cuts in half, meaning he has 100/2= <<100/2=50>>50-foot sections of rope.
He then takes one of these sections and cuts it in half again, leaving him with two 50/2= <<50/2=25>>25-foot sections of rope.
He then takes one of these sections and cuts it into fifths, leaving him with 25/5= <<25/5=5>>5 foot sections of rope, one of which he is now holding.
#### 5
Tameka is selling boxes of crackers for her scout troop. On Friday, she sold 40 boxes. On Saturday, she sold 10 fewer than twice that number. And on Sunday, she sold half as many as Sunday.

Question: How many boxes did she sell over the three days?
Answer: Saturday's total was 2*40-10=<<2*40-10=70>>70.
Sunday's was 70/2=<<70/2=35>>35.
The sum is 40+70+35=<<40+70+35=145>>145.
#### 145
In 5 years, Frank will be three times as old as Ty is now. Ty is currently 4 years more than two times as old as Carla is now. Carla is currently 2 years older than Karen is now.

Question: If Karen is currently 2 years old, how old will Frank be in 5 years?
Answer: Carla is currently 2 + 2 = <<2+2=4>>4 years old
Ty is currently (2 * 4) + 4 = <<2*4+4=12>>12 years old
In 5 years, Frank will be 12 * 3 = <<12*3=36>>36 years old
#### 36
A Printing shop needs to ship 5000 brochures to an advertising company. Each box can only contain one-fifth of the brochures.

Question: How many boxes are needed to ship those brochures?
Answer: 5000 x 1/5 = <<5000*1/5=1000>>1000 brochures can fit in one box.
Thus, 5000/1000 = <<5000/1000=5>>5 boxes are needed
#### 5
Emma's bank account has $100 in it. Each day of the week, she spends $8. At the end of the week, she goes to the bank and asks for as many $5 bills as her account can give her. She leaves the rest in the account.

Question: How many dollars remain in the account?
Answer: She spend $56 because 7 x 8 = <<7*8=56>>56
She has $44 left in the bank because 100 - 56 = <<100-56=44>>44
She can get 8 five dollar bills because 44 / 5 = <<44/5=8.8>>8.8
This is equal to $40 because 8 x 5 = <<8*5=40>>40
She has $4 left in the account because 44 - 40 = <<44-40=4>>4
#### 4
Brian has twice as many tennis balls as Frodo, who has 8 more than Lily.

Question: If Lily has 3 tennis balls, how many does Brian have?
Answer: Frodo has 8 tennis balls more than Lily (who has 3), so he has 8+3 = <<8+3=11>>11 tennis balls
Brian has twice as many as Frodo, which makes 11*2 = <<11*2=22>>22 tennis balls.
#### 22
There are 4 more Muscovy ducks than Cayugas, and 3 more than twice as many Cayugas as Khaki Campbells.

Question: If there are 90 ducks total, how many Muscovies are there?
Answer: Let x represent the number of Khaki Campbell ducks.
Cayugas:3+2x
Muscovies:4+(3+2x)=7+2x
Total: x+3+2x+7+2x=90
5x+10=90
5x=80
x=<<16=16>>16
Muscovy: 7+2(16)=39
#### 39
Wally gives 3/4 of his 400 tickets to his two friends Jensen and Finley, who share the tickets in a ratio of 4:11.

Question: How many tickets does Finley get?
Answer: Wally gives his friends 3/4*400 = <<3/4*400=300>>300 tickets to share.
The total ratio that represents the tickets that Jensen and Finley share is 4+11 = <<4+11=15>>15
From the total ratio, the fraction that represents the share that Finley got is 11/15, and since he shared with Jensen 300 tickets, he got 11/15*300 = <<11/15*300=220>>220 tickets
#### 220
There are 30 fish in the tank. One third of them are blue, and half of the blue fish have spots.

Question: How many fish in the tank are blue, spotted fish?
Answer: There are 30/3=<<30/3=10>>10 blue fish.
There are 10/2=<<10/2=5>>5 blue spotted fish.
#### 5
Nancy can hula hoop for 10 minutes. Casey can hula hoop 3 minutes less than Nancy. Morgan can hula hoop three times as long as Casey.

Question: How long can Morgan hula hoop?
Answer: Casey can hula hoop 3 minutes less than Nancy so she can hula hoop for 10-3 = <<10-3=7>>7 minutes
Morgan can hula hoop three times as long as Casey, who can hula hoop for 7 minutes, so she can hula hoop for 3*7 = <<3*7=21>>21 minutes
#### 21
Mary goes with her 3 children to the circus. Tickets cost $2 for adults and $1 for children. Mary pays with a $20 bill.

Question: How much change will she receive?
Answer: Mary's ticket costs $2/ticket * 1 ticket = $<<2*1=2>>2
Mary's children's tickets cost 3 tickets * $1 = $<<3*1=3>>3
Together the tickets cost $2 + $3 = $<<2+3=5>>5
After paying with a 20-dollar bill, Mary will receive $20 - $5 = $<<20-5=15>>15
#### 15
The school decided to have a fundraiser to collect $750 for new basketball equipment. Families could donate $25, $50, or $100. Families who donated $25 got Bronze Status. Families who donated $50 got Silver Status. Families who donated $100 got Gold Status. With one day left in the fundraiser, the school has 10 Bronze Status families, 7 Silver Status Families and 1 Gold Status family.

Question: How much do they need to raise on the final day to reach their goal?
Answer: They collected $250 from Bronze Status families because 10 times 25 equals <<10*25=250>>250.
They collected $350 from Silver Status families because 7 times 50 equals <<7*50=350>>350.
They collected $100 from Gold Status families because 1 times 100 equals 100.
Therefore, they collected $700 thus far because 250 plus 350 plus 100 equals <<250+350+100=700>>700.
They need to collect $50 more because 750 minus 700 equals 50.
#### 50
Jan's three-eyed lizard has 3 times more wrinkles than eyes, and seven times more spots than wrinkles.

Question: How many fewer eyes does the lizard have than the combined number of spots and wrinkles?
Answer: Three times more wrinkles than three eyes is 3*3=<<3*3=9>>9 wrinkles.
Seven times more spots than wrinkles is 7*9=<<7*9=63>>63 spots.
Therefore, the combined number of spots and wrinkles on the lizard is 63+9=<<63+9=72>>72 spots and wrinkles.
Thus, the lizard has 72-3=69 fewer eyes than spots and wrinkles
#### 69
Bob and Jim decide to skip rocks. Bob can skip a rock 12 times. Jim can skip a rock 15 times.

Question: If they each skipped 10 rocks how many total skips did they get?
Answer: Bob got 12*10=<<12*10=120>>120 skips
Jim got 15*10=<<15*10=150>>150 skips
So in total they got 120+150=<<120+150=270>>270 skips
#### 270
When Nathan is cold, he adds an extra blanket to his bed. Each blanket warms him up by 3 degrees. One night, he was cold enough that he added half of the 14 blankets in his closet on his bed.

Question: How many degrees did the blankets warm Nathan up?
Answer: Nathan added 14 / 2 = <<14/2=7>>7 blankets to his bed.
The blankets warmed Nathan up 7 * 3 = <<7*3=21>>21 degrees.
#### 21
10 boxes each contain 50 bottles of water. Each bottle has a capacity of 12 liters and is filled up to 3/4 of its capacity.

Question: How many liters of water altogether are contained within the bottles in the boxes?
Answer: Since each water bottle has a capacity of 12 liters, when filled up to 3/4 of capacity, each carries 3/4*12 = <<3/4*12=9>>9 liters of water.
If there are 50 bottles of water in each box, the number of liters the water bottles in a box are carrying is 50*9 = <<50*9=450>>450 liters.
In 10 boxes containing bottled water, the total number of liters in the water bottles is 450*10 =<<450*10=4500>>4500 liters.
#### 4500
Yanna bought ten shirts at $5 each and three pairs of sandals at $3 each.

Question: How much change did she get back if she gave a one hundred dollar bill?
Answer: Ten shirts cost 10 x $5 = $<<10*5=50>>50.
And, three pairs of sandals cost 3 x $3 = $<<3*3=9>>9.
Thus, she spent $50 + $9= $<<50+9=59>>59.
Therefore, she got back change of $100 - $59 = $<<100-59=41>>41.
#### 41
Jamie is a firefighter. One day an emergency call comes in from Mrs. Thompson, an elderly woman whose cat can't get down a 20-foot tree. The last time Jamie rescued a cat, he got it down from a 6-foot tree and had to climb 12 rungs of his ladder.

Question: How many rungs does he have to climb this time to get the cat down from the tree?
Answer: Jamie needed 12/6 = <<12/6=2>>2 rungs per foot of the tree to save the first cat.
To climb a 20-foot tree, Jamie needs 20*2 = <<20*2=40>>40 rungs
#### 40
Sanya can wash 7 bath towels in one wash, which will take 1 hour. She only has 2 hours in a day to do this task.

Question: If she has 98 bath towels, how many days will she need to wash all of them?
Answer: Every day, Sanya can wash 7 x 2 = <<7*2=14>>14 bath towels.
To wash all the towels, she will need 98 / 14 = <<98/14=7>>7 days.
#### 7
Ten more than twice the number of birds on the fence is 50.

Question: How many birds are on the fence?
Answer: Let x be the number of birds on the fence. We know that 10 + 2*x = 50.
Subtracting 10 from both sides, we get 2*x = 50 - 10 = 40
Dividing both sides by 2, we get x = 20
#### 20
Toby has 63 photos on his camera roll. He deletes seven bad shots, takes fifteen pictures of his cat, and then does a photo shoot with his friends. After editing the photos with his friends, he decides to delete three of them. His camera roll has 84 photos in the end.

Question: How many photos did Toby take in the photo shoot?
Answer: Let P be the number of photos in the photo shoot.
After Toby deleted 7 shots, he had 63 - 7 = <<63-7=56>>56 photos.
After taking 15 cat pictures, he had 56 + 15 = <<56+15=71>>71 photos.
After the photo shoot, he had 71 + P photos.
After deleting 3 photos, he had 71 + P - 3 = <<71+-3=68>>68 + P photos.
He had 68 + P = 84 photos in the end.
Thus, Toby took P = 84 - 68 = <<84-68=16>>16 photos in the photo shoot.
#### 16
In a classroom of 81 students, two-thirds are wearing striped shirts while the others are wearing checkered shirts.

Question: If there are 19 more students wearing shorts than checkered shirts, how many more students are wearing striped shirts than shorts?
Answer: 81/3 = <<81/3=27>>27 students are wearing checkered shirts.
27 x 2 = <<27*2=54>>54 students are wearing striped shirts.
27 + 19 = <<27+19=46>>46 students are wearing shorts.
54 - 46 = <<54-46=8>>8 more students are wearing striped shirts than shorts.
#### 8
A teacher has to order supplies for his class to do a science project. Each student needs a bow, a small bottle of vinegar and a box of baking soda. Bows are $5 each, a bottle of vinegar is $2 and a box of baking soda is $1. The teacher has 23 students in this class.

Question: How much will the supplies cost?
Answer: The supplies for every student will cost 5 + 2 + 1 = $<<5+2+1=8>>8.
The supplies for the whole class will cost 8 * 23 = $<<8*23=184>>184 in total.
#### 184
Balki is counting the number of raisins in boxes of cereal. He counted 437 total raisins in 5 boxes. In one box he counted 72 raisins. In a second box he counted 74 raisins. The other three boxes had the same number each.

Question: How many were in each of the other three boxes?
Answer: Let x = the number of raisins in each of the other 3 boxes. Then 72 + 74 + 3x = 437 raisins
Combining like terms we get 146 + 3x = 437 raisins
Subtracting 146 from both sides we get 3x = 291 raisins
Dividing both sides by 3, we get x = 291 / 3 = 97 raisins
#### 97
A colony of bees can contain up to 80000 individuals. In winter they are more exposed to death, and if the winter is really cold the bees can begin to die slowly.

Question: If the colony starts to lose 1200 bees per day, how many days will pass until the number of bees in the colony reaches a fourth of its initial number?
Answer: A fourth of the initial number of bees is 80000 bees / 4 = <<80000/4=20000>>20000 bees
The number of bees that has to die is 80000 bees – 20000 bees = <<80000-20000=60000>>60000 bees
For the colony to reach a fourth of its population, 60000 bees ÷ 1200 bees/day = <<60000/1200=50>>50 days have to pass.
#### 50
Robert, a sales agent, earns a basic salary of $1250 per month and,  10% commission on his monthly sales. Last month, his total sales were $23600. He allocated 20% of his total earnings to savings and the rest of the money to his monthly expenses.

Question: How much were his monthly expenses last month?
Answer: Robert earned a commission of $23600 x 10/100 = $<<23600*10/100=2360>>2360.
So, he earned a total of $1250 + $2360 = $<<1250+2360=3610>>3610.
And, he saved $3610 x 20/100 = $<<3610*20/100=722>>722.
Therefore, his total expenses last month was $3610 - $722= $<<3610-722=2888>>2888
#### 2888
There are 3 workers producing chairs in a furniture factory. Each of them produces 4 chairs an hour. As a group, they produce an additional chair every 6 hours.

Question: In total, how many chairs have been produced after 6 hours?
Answer: The workers produce a combined total of 3 workers * 4 hours = <<3*4=12>>12 chairs every hour.
After 6 hours, they have therefore produced 12 * 6 = <<12*6=72>>72 chairs.
Adding the additional chair means the total amount of chairs produced is 72 + 1 = <<72+1=73>>73 chairs.
#### 73
Jenna works as a truck driver. She gets paid $0.40 cents per mile.

Question: If she drives 400 miles one way, how much does she get paid for a round trip?
Answer: First find the total number of miles Jenna drives: 400 miles/way * 2 ways = 800 miles
Then multiply that number by her pay per mile to find her total pay: 800 miles * $0.40/mile = $<<800*0.4=320>>320
#### 320
Tim's car goes down in value by $1000 a year. He bought it for $20,000.

Question: How much is it worth after 6 years?
Answer: It went down in value 1000*6=$<<1000*6=6000>>6000
So the car is worth 20000-6000=$<<20000-6000=14000>>14,000
#### 14000
Andy can get 50 demerits in a month before getting fired.

Question: If he got 2 demerits per instance for showing up late 6 times and 15 demerits for making an inappropriate joke, how many more demerits can he get this month before getting fired?
Answer: First find how many demerits Andy got for showing up late: 2 demerits/time * 6 times = <<2*6=12>>12 demerits
Then subtract the number of demerits he's gotten so far to find how many more he can get before getting fired: 50 demerits - 12 demerits - 15 demerits = <<50-12-15=23>>23 demerits
#### 23