acnagle/gsm8k-filtered huggingface dataset:
Janet buys 3 pounds of broccoli for $4 a pound, 3 oranges for $0.75 each, a cabbage for $3.75, a pound of bacon for $3, and two pounds of chicken for $3 a pound.

Question: What percentage of her grocery budget did she spend on meat, rounded to the nearest percent?
Answer: First find the total cost of the broccoli: 3 pounds * $4/pound = $<<3*4=12>>12
Then find the total cost of the oranges: 3 oranges * $0.75/orange = $<<3*0.75=2.25>>2.25
Then find the total cost of the vegetables: $12 + $2.25 + $3.75 = $<<12+2.25+3.75=18>>18
Then find the total cost of the chicken: $3/pound * 2 pounds = $<<3*2=6>>6
Then add the cost of the bacon to find the total cost of the meat: $6 + $3 = $<<6+3=9>>9
Then add the cost of the meat and vegetables to find the total cost of the groceries: $9 + $18 = $<<9+18=27>>27
Then divide the cost of the meat by the total grocery bill and multiply by 100% to express the answer as a percentage: $9 / $27 * 100% = 33.333%, which rounds down to 33%
#### 33
Jacob is trying to eat less than 1800 calories a day.

Question: If he eats 400 calories for breakfast, 900 calories for lunch, and 1100 calories for dinner, how many more calories did he eat than he planned?
Answer: First add up the calories from all three meals: 900 + 400 + 1100 = <<900+400+1100=2400>>2400
Then subtract Jacob's goal from the number of calories he actually ate: 2400 - 1800 = <<2400-1800=600>>600
#### 600
24 gallons per second of water flows down a waterfall. If you have an empty basin that can hold 260 gallons of water. The basin leaks water at 4 gallons per second.

Question: how long would it take to fill the basin with water from the waterfall in seconds?
Answer: 24 gallons in minus 4 gallons out is 24-4=<<24-4=20>>20 gallons per second
260 gallons divided by 20 gallons per second 260/20 = <<260/20=13>>13 seconds
#### 13
$240 was divided between Kelvin and Samuel. Samuel received 3/4 of the money. From his share, Samuel then spent 1/5 of the original $240 on drinks.

Question: How much does Samuel have left?
Answer: Samuel received 3/4 of $240, which is $240*(3/4) = $<<240*3/4=180>>180
He spent 1/5 of $240, which is $240*(1/5) = $<<240*(1/5)=48>>48
He spent this amount from his own share, so he has $180-$48 = $<<180-48=132>>132 left.
#### 132
There are 120 cards in a box.

Question: If 2/5 of the cards are red, exactly 5/9 of the remainder are black, and the rest are green, calculate the number of green cards in the box?
Answer: The number of red cards in the box, 2/5 of the total number, is 2/5*120 = <<2/5*120=48>>48.
The number of cards that are not red is 120-48 = <<120-48=72>>72.
If 5/9 of the remaining cards are black, then there are 5/9*72 = <<5/9*72=40>>40 black cards in the box.
If the remaining cards are green, then there are 72-40 = <<72-40=32>>32 green cards in the box.
#### 32
Jackson and Brandon both invest $500 in the stock market. Jackson's investment quadruples in value, while Brandon's is reduced to 20% of the initial value.

Question: How much more money does Jackson have than Brandon now?
Answer: First find the end value of Jackson's investment: $500 * 4 = $<<500*4=2000>>2000
Then find the end value of Brandon's investment: 20% * $500 = $<<20*.01*500=100>>100
Then subtract the value of Brandon's investment from the value of Jackson's investment to find the difference: $2000 - $100 = $<<2000-100=1900>>1900
#### 1900
Yulia was able to net $44 in profit this week. Her lemonade stand made a gross revenue of $47 this week. She was also able to babysit and made $31. However, her lemonade stand is expensive to run because she needs to buy lemons, sugar, and sunscreen.

Question: How much did she spend to operate her lemonade stand, in dollars?
Answer: Yulia's total gross revenue was $47 + $31 = $<<47+31=78>>78.
To calculate her overhead we must subtract her total profit from her gross revenue which is $78 - $44 = $<<78-44=34>>34.
#### 34
Sally is saving up for a trip to Sea World. She already has $28 saved. It costs her $10 to park, $55 to get into the park and $25 for a meal pass. Sea World is 165 miles away and her car gets 30 miles per gallon of gas.

Question: If gas costs $3 a gallon, how much more will she have to save up?
Answer: She will be driving 330 miles for her trip because 2 x 165 = <<2*165=330>>330
They will need 11 gallons of gas because 330 / 30 =<<330/30=11>>11
The gas will cost $33 because 11 x 3 = <<11*3=33>>33
Her total cost is $123 because 10 + 55 + 25 + 33 = <<10+55+25+33=123>>123
She needs to save $95 more because 123 - 28 = <<123-28=95>>95
#### 95
Georgia is sick and coughs 5 times a minute. Her brother Robert is also sick but he coughs twice as much as her.

Question: After 20 minutes, how many times have they coughed?
Answer: Robert coughs twice as much as Georgia who coughs 5 times so Robert coughs 2*5 = <<10=10>>10 coughs per minute
Georgia coughs 5 times and Robert coughs 10 times so together they cough 5+10 = <<5+10=15>>15 times per minute
After 20 minutes they will have coughed 15*20 = <<15*20=300>>300 coughs
#### 300
Tom got 40 oranges and 70 apples. If he sold 1/4 of the oranges and 1/2 of the apples.

Question: How many fruits were left in total?
Answer: There are 40 + 70 = <<40+70=110>>110 oranges and apples altogether .
He sold 40 x .25 = <<40*.25=10>>10 pieces of oranges.
He sold 70 x .50 = <<70*.50=35>>35 pieces of apples.
So, Tom was left with 110 - 10 - 35 = <<110-10-35=65>>65 pieces.
#### 65
Eighteen hours ago, Beth and I took 100 photographs of our project. Today, Beth and I will take 20% fewer photographs of the same project.

Question: If we were to take 300 photographs of the project, how many photographs would we take to reach the target?
Answer: If you took 100 photographs of the project 18 hours ago, and today 20% few photographs have been taken, then 20/100*100 = 20 fewer photographs of the project have been taken today.
The total number of photographs of the project that have been taken today is 100-20 = <<100-20=80>>80
So far, you've taken 80+100 = <<80+100=180>>180 photographs of the project.
Since the target number of photographs is 300, the number of photographs that you need to take to reach the target is 300-180 = <<300-180=120>>120
#### 120
Ali has a small flower shop. He sold 4 flowers on Monday, 8 flowers on Tuesday and on Friday, he sold double the number of flowers he sold on Monday.

Question: How many flowers does Ali sell?
Answer: Combining Tuesday and Monday, Ali sold 4 + 8 = <<4+8=12>>12 flowers.
On Friday, he sold 2 * 4 = <<2*4=8>>8 flowers.
Altogether, Ali sold 12 + 8 = <<12+8=20>>20 flowers.
#### 20
Penelope the pig eats 20 pounds of food per day, which is 10 times more than Greta the goose eats per day. Milton the mouse eats 1/100 as much as Greta the goose eats per day, but Elmer the elephant eats 4000 times more than Milton the mouse does per day.

Question: How much more, in pounds, does Elmer the elephant eat per day than Penelope the pig?
Answer: Greta the goose eats 20/10=<<20/10=2>>2 pounds of food per day.
Milton the mouse eats (1/100)*2=1/50 of a pound of food per day.
Elmer the elephant eats 4000*(1/50)=<<4000*(1/50)=80>>80 pounds of food per day.
Thus, Elmer eats 80-20=60 pounds more food per day than does Penelope the pig.
#### 60
Harold had 100 marbles. He kept 20 marbles and shared the rest evenly among his 5 friends.

Question: How many marbles did each friend get?
Answer: Harold shared 100 - 20 = <<100-20=80>>80 marbles with his friends.
Therefore, his 5 friends got 80/5 = <<80/5=16>>16 marbles each.
#### 16
John's pool is 5 feet deeper than 2 times Sarah’s pool.

Question: If John’s pool is 15 feet deep, how deep is Sarah’s pool?
Answer: Let x be the number of feet in John’s pool
2*x + 5=15
2x=10
x=<<5=5>>5
#### 5
Tara is saving up to buy a new clarinet. She already has $10 saved. The clarinet costs $90. She plans to sell her old books to make the money. She sells each book of hers for $5. However, when she is halfway towards her goal, she loses all her savings and has to start over.

Question: How many books does she sell in total by the time she reaches her goal?
Answer: Halfway towards her goal is $45 because 90 / 2 = <<90/2=45>>45
She sells $35 worth of books before she loses the money because 45 - 10 = <<45-10=35>>35
She sells 7 books before losing her money because 35 / 7 = <<35/7=5>>5
She then sells 18 books because 90 / 5 = <<90/5=18>>18
She sells 25 books in total because 18 + 7 = <<18+7=25>>25
#### 25
Jenna is on a road trip. She drives for 2 hours at 60mph. She takes a bathroom break, and then she continues driving for 3 hours at 50 mph. She can drive for 30 miles on one gallon of gas.

Question: If one gallon of gas costs $2, how much money does she spend on gas for her trip?
Answer: First she drives 2 hours * 60 mph = <<2*60=120>>120 miles
Then she drives 3 hours * 50 mph = <<3*50=150>>150 miles
The total miles driven is 120 + 150 = <<120+150=270>>270 miles
Jenna uses 270 / 30 = <<270/30=9>>9 gallons of gas.
The cost of gas is 9 * $2 = $<<9*2=18>>18
#### 18
The United States flag has 50 stars, one for every state in the union, and 13 stripes, which represent the original 13 colonies. Pete, inspired by history, decided to make his own flag. He used circles, to represent how many scoops of ice cream he can consume in one sitting, and squares, to represent the number of brownies he has hidden beneath his bed. For circles, he used 3 less than half the number of stars on the US flag, and for squares, he used six more than twice the number of stripes on the US flag.

Question: What is the combined total number of circles and squares on Pete's flag?
Answer: Half the number of stars on the US flag is 50/2=<<50/2=25>>25
Three less than half the number of stars on the US flag is 25-3=<<25-3=22>>22 circles.
Twice the number of stripes on the US flag is 13*2=<<13*2=26>>26.
Six more than twice the number of stripes on the US flag is 26+6=32 squares.
In total, Pete's flag has 22+32=<<22+32=54>>54 circles and squares.
#### 54
Candied yams fly off the shelf during the holiday season. The store buys them in bulk boxes of 25 packages.

Question: If every third shopper buys a package of candied yams, how many bulk boxes of candied yams will the store need to order for their 375 predicted holiday shoppers?
Answer: Every third shopper buys a package of candied yams, so the store will need 375 / 3 = <<375/3=125>>125 packages.
At 25 packages per bulk box, the store will need 125 / 25 = <<125/25=5>>5 bulk boxes of candied yams.
#### 5
Hazel put up a lemonade stand. She sold half her lemonade to a construction crew. She sold 18 cups to kids on bikes. She gave away half that amount to her friends. Then she drank the last cup of lemonade herself.

Question: How many cups of lemonade did Hazel make?
Answer: Hazel sold 18 cups of lemonade to kids on bikes and gave half that amount, or 18 / 2 = <<18/2=9>>9 cups, away to friends.
Hazel sold 18 cups + gave away 9 cups + drank 1 cup = <<18+9+1=28>>28 cups.
Since Hazel sold half her lemonade to a construction crew, that means the 28 cups she sold to kids on bikes, gave away to friends and drank herself are the other half, so she sold 28 cups to the construction crew.
In all, Hazel sold 28 + 28 = <<28+28=56>>56 cups of lemonade.
#### 56
Aaron pays his actuary membership fees each year. The membership fee increases yearly by $10.

Question: If he pays $80 in the first year, how much does his membership cost, in dollars, in the sixth year?
Answer: In year 2 he pays 80+10=$<<80+10=90>>90.
In year 3 he pays 90+10=$<<90+10=100>>100.
In year 4 he pays 100+10=$<<100+10=110>>110.
In year 5 he pays 110+10=$<<110+10=120>>120.
In year 6 he pays 120+10=$<<120+10=130>>130.
#### 130
Merry is taking care of 10 lambs. Her brother takes care of 3 more lambs than Merry.

Question: How many lambs do Merry and her brother have?
Answer: Merry's brother takes care of 10 + 3 = <<10+3=13>>13 lambs.
So, together Merry and her brother have 10 + 13 = <<10+13=23>>23 lambs.
#### 23
25% of oysters have pearls in them. Jamie can collect 16 oysters during each dive.

Question: How many dives does he have to make to collect 56 pearls?
Answer: First find how many pearls Jamie collects per dive by multiplying the number of oysters by the chance each oyster has a pearl: .25 pearls/oyster * 16 oysters/dive = 4 pearls/dive
Then divide the number of pearls he wants by the number of pearls per dive to find the number of dives: 56 pearls / 4 pearls/dive = <<56/4=14>>14 pearls/dive
#### 14
The marching band has 110 members. There are 4 times as many percussion players as there are woodwind, and twice as many woodwinds as brass.

Question: How many brass players are there?
Answer: Let x represent the number of brass players in the band
Woodwind:2x
Percussion:4(2x)=8x
Total:x+2x+8x=110
11x=110
x=<<10=10>>10
#### 10
Stan can type 50 words per minute. He needs to write a 5-page paper. Each page will contain 400 words. Each hour that he types he needs to drink 15 ounces of water.

Question: How much water does he need to drink while writing his paper?
Answer: Stan needs to write 2,000 words because 5 x 400 = <<5*400=2000>>2,000
This will take him 40 minutes because 2,000 / 50 = <<2000/50=40>>40
He drinks 1/4 an ounce per minute because 15 / 60 = 1/4
He will drink 10 ounces of water while writing the paper because 40 x (1/4) = <<40*(1/4)=10>>10
#### 10
Oliver has 4 friends that he is inviting to a party at the arcade. Game tokens cost 30 for $1. Each game costs 2 tokens.

Question: If he wants all his friends to get to play 60 games each, how much will it cost?
Answer: He needs to buy enough tokens for 240 games because 4 x 60 = <<4*60=240>>240
He needs to buy 480 tokens because 2 x 240 = <<2*240=480>>480
He needs to spend 160 because 480 / 30 = 16
#### 16
Ryan has 30 stickers. Steven has thrice as many stickers as Ryan. Terry has 20 more stickers than Steven.

Question: How many stickers do they have altogether?
Answer: Steven has 3 x 30 = <<3*30=90>>90 stickers.
And, Terry has 90 + 20 = <<90+20=110>>110 stickers.
Therefore, they have 30 +90 + 110 = <<30+90+110=230>>230 stickers altogether.
#### 230
There are 120 crayons in a box. One third of the crayons are new, 20% are broken, and the rest are slightly used.

Question: How many are slightly used?
Answer: New:120/3=<<120/3=40>>40 crayons
Broken:120(.20)=24 crayons
Slightly Used:120-40-24=<<120-40-24=56>>56 crayons
#### 56
Jennifer is building tanks to hold her goldfish. She built 3 tanks that will hold 15 fish each, heated, and filled them. She plans to build the rest of the tanks equipped with heaters, and they will hold 10 fish each.

Question: If she needs to build enough tanks to house a total of 75 fish, how many more will she need to build?
Answer: With the tanks already built it has room for 3 tanks * 15 fish/tank = <<3*15=45>>45 fish.
The total of fish that still lack space is 75 fish - 45 fish = <<75-45=30>>30 fish.
This means Jennifer needs 30 fish / 10 fish/tank = <<30/10=3>>3 tanks of 10 fish.
#### 3
Mark got a 5% raise at his job. Before the raise, he earned 40 dollars per hour. He works 8 hours per day for 5 days per week. His old bills used to be 600 dollars a week but he decided to add a hundred dollar a week personal trainer.

Question: How much does he have leftover a week?
Answer: After the raise he earns 40*1.05=<<40*1.05=42>>42 dollars an hour
He works 8 hours per day so earns 42*8=<<8*42=336>>336 per day
He works 5 days per week so he earns 336*5=<<336*5=1680>>1680 a week
His expenses after adding the personal trainer are 600+100=<<600+100=700>>700 a week
So he has 1680-700=<<1680-700=980>>980 left over
#### 980
Vikki worked 42 hours in one week. Her hourly pay rate is $10. From her weekly earnings, 20% is deducted as tax, 5% is deducted as insurance cover, and $5 is deducted for union dues.

Question: How much money, in dollars, does Vikki take home after deductions?
Answer: Vikki earnt 10 × $42 = $<<10*42=420>>420 in one week.
She then gets taxed $420 × 0.2 = $<<420*0.2=84>>84.
She also loses $420 × 0.05 = $<<420*0.05=21>>21 due to insurance.
Vikki also pays $5 in union dues.
In total Vikki loses $84 + $21 + $5 = $<<84+21+5=110>>110 because of deductions.
Her final total pay after deductions is $420 - $110 = $<<420-110=310>>310
#### 310
Jed’s family wants to buy 6 different board games. Each board game costs $15 and Jed paid using a $100 bill.

Question: If the cashier gave Jed only $5 bills for his change, how many bills did Jed receive?
Answer: Jed paid $15 x 6 = $<<15*6=90>>90 for the 6 board games.
He has $100 - $90 = $<<100-90=10>>10 change.
Therefore, Jed received$ 10/$5 = <<10/5=2>>2 $5 bills.
#### 2
Jessica has a basic cable television service for $15 per month. If she adds the movie channels, it will cost an additional $12 per month. The sports channels cost $3 less per month than the movie channels.

Question: If Jessica adds the movie channels and the sports channels, what will her total monthly payment be?
Answer: The sports channels cost $12 - $3 = $<<12-3=9>>9 per month.
Jessica has to pay $15 + $12 + $9 = $<<15+12+9=36>>36 in total per month.
#### 36
The sum of the ages of two friends, Alma and Melina, is twice the total number of points Alma scored in a test.

Question: If Melina is three times as old as Alma, and she is 60, calculate Alma's score in the test?
Answer: If Melina is three times as old as Alma, and she is 60, Alma is 60/3 = <<60/3=20>>20 years old.
The sum of their ages is 60+20 = <<60+20=80>>80 years.
Since the sum of Alma and Melina's age is twice the total number of points Alma scored in a test, Alma's score in the test was 80/2 = <<80/2=40>>40 points.
#### 40
Bob can shuck 10 oysters in 5 minutes.

Question: How many oysters can he shuck in 2 hours?
Answer: He shucks 10 oysters in 5 minutes we need to know how many 5 minute units are in 60 minutes so 60/5 = 12 units
He can shuck 10 oysters in 5 minutes and there are 12 5 minute units in an hour so he can shuck 10*12 = <<10*12=120>>120 oysters in 1 hour
If he can shuck 120 oysters in 1 hour, so for 2 hours in can shuck 2*120 = 240 oysters
#### 240
Angel has a tasty fruit salad restaurant making twice the number of fruit salads made by her friend Alaya's tasty fruit salad restaurant. Alaya's restaurant has 200 fruit salads.

Question: How many fruit salads are there in total in the two restaurants?
Answer: Angel restaurant makes 2*200 = <<2*200=400>>400 fruit salads.
The total number of fruit salads made in the two restaurants is 200+400 = <<200+400=600>>600
#### 600
Dana normally drinks a 500 ml bottle of soda each day. Since the 500 ml bottles are currently out of stock at the store, she buys a 2-liter bottle of soda instead. There are 1,000 ml in 1 liter.

Question: If Dana continues to drink 500 ml of soda each day, how long will the 2-liter bottle of soda last?
Answer: There are 2*1,000 ml = <<2*1000=2000>>2,000 ml in a 2-liter bottle of soda.
A 2-liter bottle of soda lasts 2,000/500 = <<2000/500=4>>4 days.
#### 4
At a birthday party, there are 20 red balloons and 15 green balloons. Before the party started, 3 red and 2 green balloons burst.

Question: How many balloons are left?
Answer: There are a total of 20 + 15 = <<20+15=35>>35 balloons at the party.
Out of the 35, 3 + 2 = 5 balloons burst.
Thus, only 35 - 5 = <<35-5=30>>30 balloons are left.
#### 30
At a bus station, a bus leaves every half-hour for 12 hours a day.

Question: How many buses leave the station for 5 days?
Answer: If one bus leaves every half-hour, then during one hour, there are 1 + 1 = <<1+1=2>>2 buses that leave the station.
During 5 days 2 * 12 * 5 = 120 buses leave the station.
#### 120
Inez has $150. She spends one-half on hockey skates and a certain amount on hockey pads.

Question: If Inez has $25 remaining, how much did the hockey pads cost, together, in dollars?
Answer: She spent 150/2=$<<150/2=75>>75 on hockey skates.
Let X be the amount Inez spent on hockey pads.
150-75-X=25
75-X=25
X=<<50=50>>50
The hockey pads cost $<<50=50>>50.
#### 50
Eliza buys 200 ornamental rings to sell in their local shop, twice the number of the remaining stock. After selling 3/4 of the total stock, her mother buys 300 more ornamental rings, and after three days, sells 150.

Question: What's the total number of ornamental rings remaining in the store?
Answer: If Eliza restocked twice the original number of ornamental rings, the number was 200/2= <<200/2=100>>100 rings.
The total number of ornamental rings in stock is now 200+100 = <<200+100=300>>300 rings.
When she sells 3/4 of the stock, the total number of rings sold is 3/4*300 =<<3/4*300=225>>225 rings.
The remaining stock is 300-225 = <<300-225=75>>75 rings.
When her mother buys 300 more rings, the stock is boosted to 75+300 = <<75+300=375>>375 rings.
She then sells out 150, reducing the stock to 375-150 = 225 rings
#### 225
Jeremy buys 3 bags of chips for a party. Stacy and Emily also buy chips for the party.

Question: If they need 10 bags of chips total, and Stacy buys 4 bags, how many bags of chips should Emily buy?
Answer: Jeremy and Stacy buy 3+4 = <<3+4=7>>7 bags of chips.
Since there needs to be 10 total, Emily should buy 10-7=<<10-7=3>>3 bags of chips.
#### 3
On Tuesday, a fruit vendor sold 2.5 dozen lemons and 5 dozens avocados.

Question: What is the total number of fruits that the fruit vendor sold?
Answer: Since 1 dozen is equal to 12, then the vendor sold 2.5 x 12 = <<2.5*12=30>>30 lemons.
While he sold 5 x 12 = <<5*12=60>>60 avocados.
So, the fruit vendor sold a total of 30 + 60 = <<30+60=90>>90 fruits.
#### 90
On a quiz, Martin answered three fewer questions correctly than Kelsey, and Kelsey answered eight more questions correctly than Campbell.

Question: If Campbell answered 35 questions correctly, how many did Martin answer correctly?
Answer: Kelsey answered 35+8=<<35+8=43>>43 correctly.
Martin answered 43-3=<<43-3=40>>40 correctly.
#### 40
There are 250 books inside a library. On Tuesday, 120 books are taken out to be read by children. On Wednesday, 35 books are returned. On Thursday, another 15 books are withdrawn from the library.

Question: How many books are now in the library?
Answer: On Tuesday, 120 books were taken out 250 - 120 = <<250-120=130>>130 books
On Wednesday, 35 books were returned 130 + 35 = <<130+35=165>>165 books
On Thursday, 15 books were borrowed 165 - 15 = 150 books
#### 150
In a town, there is a multi-story parking lot, which has room for 425 cars. The parking lot has 5 levels, each of the same size.

Question: How many more cars can one level fit if there are already 23 parked cars on that level?
Answer: When all levels are empty, each level can fit 425 / 5 = <<425/5=85>>85 cars.
When there are already 23 parked cars on a level, there is still a place for 85 - 23 = 62 cars.
#### 62
Luke is planning a trip to London and wants to see how long it will take him to travel there. He decides that he will take a bus to the town center, walk for 15 minutes to the train center, wait twice this long for the train to arrive, and then take the 6-hour train ride to London.

Question: If Luke’s entire trip takes him 8 hours, how many minutes does his bus ride take?
Answer: Removing the time of the train ride from the journey shows that his trip to get on the train took him 8 hours – 6 hours = <<8-6=2>>2 hours.
Converting this time into minutes shows that getting to the train took 2 hours * 60 minutes/hour = <<2*60=120>>120 minutes.
Waiting for the train to arrive took twice as long as his walk, so 15 minutes * 2 = <<15*2=30>>30 minutes.
This means that his bus ride must have taken 120 minutes – 30 minutes - 15 minutes = <<120-30-15=75>>75 minutes.
#### 75
There are 14 more kittens than two times the number of puppies at the animal shelter.

Question: If there are 32 puppies at the shelter, how many kittens are there?
Answer: Two times the number of puppies is 32*2=<<32*2=64>>64 kittens
There are 64+14=<<64+14=78>>78 kittens
#### 78
Mr. Johnson has a prescription with enough pills for 30 days. After four-fifths of the days, he has 12 pills left.

Question: How many pills is Mr. Johnson supposed to take a day if he takes the same dose daily?
Answer: Mr. Johnson has been taking the pills for 30 * 4 / 5 = <<30*4/5=24>>24 days.
He has 30 - 24 = <<30-24=6>>6 days left to finish the pills.
Thus, Mr. Johnson is supposed to take 12 / 6 = <<12/6=2>>2 pills a day.
#### 2