acnagle/gsm8k-filtered huggingface dataset:
Anne drops a mirror and breaks it into 60 pieces. She sweeps up half of them, then her cat steals 3 pieces and her boyfriend picks up 1/3 of the remaining pieces.

Question: How many pieces does her boyfriend pick up?
Answer: First find the number of pieces left after Anne sweeps up: 60 pieces / 2 = <<60/2=30>>30 pieces
Then subtract the number her cat takes: 30 pieces - 3 pieces = <<30-3=27>>27 pieces
Divide that number by 3 to find how many pieces her boyfriend picks up: 27 pieces / 3 = <<27/3=9>>9 pieces
#### 9
At the gym, every day, there are 300 towels laid out for guest use. Each guest is given 1 towel during their visit. The gym is open from 10:00 a.m. to 2:00 p.m. In the first hour, 50 guests enter the gym. In the second hour, 20% more guests enter than during the first hour. In the third hour, 25% more guests enter than in the second hour. In the fourth hour, one third more guests enter than in the third hour.

Question: In total, how many towels do they need to wash that evening?
Answer: In the second hour, the number of towels given out is 50 x 1.20 = <<50*1.20=60>>60.
In the third hour, the number of towels given out is 60 x 1.25 = <<60*1.25=75>>75.
In the fourth hour, one-third of the guests of the third hour is 75 / 3 = <<75/3=25>>25.
In the fourth hour, the number of towels given out is 75 + 25 = <<75+25=100>>100.
In total, including the first hour guests, they need to wash this many towels: 50 + 60 + 75 + 100 = <<50+60+75+100=285>>285.
#### 285
The chef has 60 eggs. He puts 10 eggs in the fridge and uses the rest to make cakes.

Question: If he used 5 eggs to make one cake, how many cakes did the chef make?
Answer: After putting 10 eggs in the fridge, the chef has 60 - 10 = <<60-10=50>>50 eggs left to make cakes.
Since it takes 5 eggs to make one cake, the chef can make 50 eggs ÷ 5 eggs per cake = <<50/5=10>>10 cakes.
#### 10
Jim decides to buy mayo in bulk. He can buy 1 gallon of mayo at Costco for 8 dollars. At the normal store, a 16-ounce bottle costs $3.

Question: How much money does he save by buying the gallon container?
Answer: A gallon is 1*128=<<1*128=128>>128 ounces
So he needs to buy 128/16=<<128/16=8>>8 of the small bottles
That would cost 8*3=<<8*3=24>>24 dollars
So he saves 24-8=$<<24-8=16>>16
#### 16
Spongebob works in a burger shop. If he sells 30 burgers for $2 each and 12 large fries for $1.5.

Question: How much will Spongebob earn for the day?
Answer: Spongebob earned 30 x $2 = $<<30*2=60>>60 for the burgers.
He also earned 12 x $1.5 = $<<12*1.5=18>>18 for the large fries.
Therefore, Spongebob earned $60 + $18 = $<<60+18=78>>78 for the day.
#### 78
Hammond carves life-sized statues out of marble. His latest set of four statues started with an 80-pound block of marble. The first statue he carved weighed 10 pounds. The second statue weighed 18. The remaining two statues weighed the same amount. The marble he discarded after carving it off the statues weighed 22 pounds.

Question: How much did each of the remaining statues Hammond carved weigh?
Answer: Hammond’s statues weighed 80 - 22 = <<80-22=58>>58 pounds after the discarded marble was carved off.
Minus the first statue, the statues weighed 58 - 10 = <<58-10=48>>48 pounds.
Minus the second statue, the statues weighed 48 - 18 = <<48-18=30>>30 pounds.
The remaining two statues weighed the same amount, so each weighed 30 / 2 = <<30/2=15>>15 pounds.
#### 15
Bruno wants to buy two and one-half dozens of pens.

Question: How many pens will he have?
Answer: Since a dozen is equal to 12, then two dozens are equal to 12 x 2= <<24=24>>24.
One-half dozen is equal to 12/2 = <<12/2=6>>6.
Thus, Bruno will have a total of 24 + 6 = <<24+6=30>>30 pens.
#### 30
A party venue has 4 tables that seat 6 people each, 16 tables that seat 4 people each, and 8 round tables that seat 10 people each.

Question: What is the total capacity of all the tables at the party venue?
Answer: Four 6-seater tables can accommodate 4 x 6 = <<4*6=24>>24 people.
Sixteen 4-seater tables can accommodate 16 x 4 = <<16*4=64>>64 people.
Eight 10-seater table can accommodate 8 x 10 = <<8*10=80>>80 people.
Therefore, all the tables in the party venue can accommodate 24 + 64 + 80 =<<24+64+80=168>>168 people.
#### 168
Julian has 400 legos and wants to make lego models of two identical airplanes.

Question: If each airplane model requires 240 legos, how many more legos does Julian need?
Answer: Two aeroplanes require 240 legos/airplane x 2 airplanes = <<240*2=480>>480 legos.
Julian needs 480 legos - 400 legos = <<480-400=80>>80 more legos
#### 80
There are 42 apples in a crate. 12 crates of apples were delivered to a factory. 4 apples were rotten and had to be thrown away. The remaining apples were packed into boxes that could fit 10 apples each.

Question: How many boxes of apples were there?
Answer: The total number of apples delivered was 42 × 12 = <<42*12=504>>504.
There are 504 - 4 = <<504-4=500>>500 apples were left remaining.
Finally, there are 500 ÷ 10 = <<500/10=50>>50 boxes of apples.
#### 50
Mikey likes his honey cluster of oats cereal. In each spoonful, there are 4 clusters of oats. In each bowl of cereal, he gets 25 spoonfuls of cereal.

Question: If each box of cereal contains 500 clusters of oats, how many bowlfuls of cereal are in each box?
Answer: If each spoonful contains 4 clusters of oats, and each bowl of cereal has 25 spoonfuls, then in each bowl there are 4*25=<<4*25=100>>100 clusters of oats.
And If each box of cereal contains 500 clusters of oats, then there are 500/100=<<500/100=5>>5 bowlfuls of cereal in every box.
#### 5
Tara's parents gave her $90 for her birthday. Not wanting to spend it, Tara put the money in a new bank account that gains 10% interest annually.

Question: If she doesn't withdraw the money at all, how much will she have after a year?
Answer: In one year, Tara's account will yield an interest of 10/100*90 = <<10/100*90=9>>9 dollars
The total in her account will therefore be 90 + 9 = <<90+9=99>>99 dollars.
#### 99
Jackson spends 9 hours playing video games and 1/3 that much time studying.

Question: If Jackson's grade starts at 0 points and increases by 15 points for every hour he spends studying, what is his grade?
Answer: First find how many hours he spends studying by dividing the number of hours spent gaming by 3: 9 hours / 3 = <<9/3=3>>3 hours.
Then multiply that quantity by the point increase per hour to find Jackson's grade: 3 hours * 15 points/hour = <<3*15=45>>45 points.
#### 45
Jill makes scented candles as a hobby. Her favorite scents are lavender, coconut, and almond, and she uses the same amount of each scent for every candle. This time, she made twice as many lavender candles as coconut candles, along with a batch of almond candles. She ran out of almond scent after making ten candles.

Question: If she had one and a half times as much coconut scent as almond scent and used all her coconut scent up too, how many lavender candles did she make?
Answer: Jill made one and a half times as many coconut candles as almond candles, so she made 10 * 1 1/2 = 15 coconut candles.
She made twice as many lavender candles as coconut candles, so she made 2 * 15 = <<2*15=30>>30 lavender candles.
#### 30
Trisha needed to buy some groceries for herself and her dog. She spent $17 on meat, $22 on chicken, $43 on all the veggies, $5 on the eggs, and finally $45 on her dog’s food. When she left the store, she had only $35 left.

Question: How much money did she bring with her at the beginning?
Answer: The total amount of money she spent is $17 + $22 + $43 + $5 + $45 = $<<17+22+43+5+45=132>>132
Add this to the amount she had left over to find the amount of money she brought at the beginning: $132 + $35 = $<<132+35=167>>167
#### 167
Milena is 7 years old, and her grandmother is 9 times older than her. Milena's grandfather is two years older than her grandmother.

Question: What is the age difference between Milena and her grandfather?
Answer: Milena's grandmother is 7 * 9 = <<7*9=63>>63 years old.
Her grandfather is 63 + 2 = <<63+2=65>>65 years old.
So the age difference between Milena and her grandfather is 65 - 7 = <<65-7=58>>58 years.
#### 58
Mr. Banks and Ms. Elizabeth are entrepreneurs who invest in different income streams and earn revenue from the investments. From each of his eight investments, Mr. Banks received $500 in revenue. Ms. Elizabeth also received $900 from each of her 5 investment streams.

Question: How much more money did Ms. Elizabeth make from her investments than Mr. Banks?
Answer: Since Mr. Banks had 8 investment streams and each brought in a revenue of $500, he earned 500*8 = $<<500*8=4000>>4000 from all of his investments.
Ms Elizabeth also received $900*5 = $<<900*5=4500>>4500 in revenue from her 5 income streams,
The total amount of money that Ms. Elizabeth made more than Mr. Banks is $4500-$4000 = $<<4500-4000=500>>500
#### 500
John decides to buy a month's supply of dog treats. He gives his dog 2 treats a day and they cost $.1 each.

Question: How much does he spend on the treats if the month is 30 days long?
Answer: He gives his dog 2*30=<<2*30=60>>60 treats for the month
So that means it cost 60*.1=$<<60*.1=6>>6
#### 6
Wanda walks her daughter .5 miles to school in the morning and then walks .5 miles home. She repeats this when she meets her daughter after school in the afternoon. They walk to school 5 days a week.

Question: How many miles does Wanda walk after 4 weeks?
Answer: She walks .5 miles to school and back 4 times a day so that's .5*4 = <<.5*4=2>>2 miles
She walks 2 miles a day for 5 days so that's 2*5 = <<2*5=10>>10 miles
Over 4 weeks of walking 10 miles per week she walks 4*10 = <<4*10=40>>40 miles
#### 40
For every 12 cans you recycle, you receive $0.50, and for every 5 kilograms of newspapers, you receive $1.50.

Question: If your family collected 144 cans and 20 kilograms of newspapers, how much money would you receive?
Answer: There are 144/12 = <<144/12=12>>12 sets of 12 cans that the family collected.
So, the family would receive $0.50 x 12 = $<<0.50*12=6>>6 for the cans.
There are 20/5 = <<20/5=4>>4 sets of 5 kilograms of newspapers that the family collected.
So, the family would receive $1.50 x 4 = $<<1.50*4=6>>6 for the newspapers.
Therefore, the family would receive a total of $6 + $6 = $<<6+6=12>>12.
#### 12
Uncle Lou was given four bags of peanuts to eat on his 2-hour plane flight. Each bag contains 30 peanuts.

Question: If he eats all of the peanuts during the flight, one at a time, consumed at equally spaced intervals, what is the length of time, in minutes, between eating each peanut?
Answer: Four bags of peanuts, with 30 peanuts per bag, is a total of 4*30=<<4*30=120>>120 peanuts.
Two hours is 60*2=<<2*60=120>>120 minutes.
Thus, consuming 120 peanuts, 1 at a time, at equally spaced intervals over two hours requires 120/120=<<120/120=1>>1 minute intervals between peanuts.
#### 1
Theresa has 5 more than thrice as many video games as Julia. Julia has a third as many video games as Tory.

Question: If Tory has 6 video games, how many video games does Theresa have?
Answer: Julia has 1/3*6=<<1/3*6=2>>2 video games.
Theresa has 3*2+5=<<3*2+5=11>>11 video games.
#### 11
Chloe bought chocolate-dipped strawberries at $50 a dozen. She then sold them for $30 for half a dozen during the Mother's Day celebration.

Question: How much is Chloe's profit if she sold 50 dozens?
Answer: If Chloe bought it for $50 per dozen, then half a dozen cost her $50/2 = $<<50/2=25>>25.
This means that she has $30 - $25 = $<<30-25=5>>5 profit per half a dozen of chocolate-dipped strawberries.
If Chloe sold 50 dozens, then she was able to sell 50/ 1/2 = 100 half a dozen chocolate-dipped strawberries.
Hence, her profit is $5 x 100 = $<<5*100=500>>500.
#### 500
Willy has 10 stuffed animals. His mom gives him 2 more stuffed animals for his birthday.

Question: After his birthday, if his dad gives him 3 times more stuffed animals than he has, how many stuffed animals does Willy have in total?
Answer: After his mom gives him stuffed animals, Willy has 10 + 2 = <<10+2=12>>12 stuffed animals
His dad gives him 12 * 3 = <<12*3=36>>36 stuffed animals
In total, Willy has 12 + 36 = <<12+36=48>>48 stuffed animals
#### 48
With her savings, Sara bought two books: a book for 5.5£ and a book for 6.5£. She gives a 20£ bill to the seller.

Question: How much change does she get back?
Answer: To find out how much the saleswoman should return to her, we have to find out how much Sara spent in total. She spent 5.5£ + 6.5£ = <<5.5+6.5=12>>12£.
So she gives 20£ and the cashier should keep 12£. The cashier therefore returns the difference between these two sums: 20£ – 12£ = <<20-12=8>>8£
#### 8
Jackson collects 45 hermit crabs, 3 spiral shells per hermit crab, and 2 starfish per spiral shell.

Question: How many souvenirs does he collect total?
Answer: First find the number of spiral shells Jackson collects: 45 hermit crabs * 3 spiral shells/hermit crab = <<45*3=135>>135 spiral shells
Then find the number of starfish he collects: 135 spiral shells * 2 starfish/spiral shell = <<135*2=270>>270 starfish
Then add the number of each animal he collects to find the total number: 135 spiral shells + 270 starfish + 45 hermit crabs = <<135+270+45=450>>450 souvenirs
#### 450
John makes 6 dozen cookies for a bake sale. He sells each cookie for $1.5 and each cookie costs $0.25 to make. He splits the profit between two charities evenly.

Question: How much does each charity get?
Answer: He makes 6*12=<<6*12=72>>72 cookies
Each cookie makes a profit of $1.5 - $0.25=$<<1.5-0.25=1.25>>1.25
So he makes a profit of 72*$1.25=$<<72*1.25=90>>90
That means each charity gets $90/2=$<<90/2=45>>45
#### 45
Greg has his own dog walking business. He charges $20 per dog plus $1 per minute per dog for walking the dog.

Question: If he walks one dog for 10 minutes, two dogs for 7 minutes and three dogs for 9 minutes, how much money, in dollars, does he earn?
Answer: Single dog is $20 + (10 minutes * $1 per minute) = $<<20+10*1=30>>30.
Two dogs are 2 * ($20 + (7 minutes * $1 per minute)) = $<<2*(20+7*1)=54>>54
Three dogs are 3 * ($20 + (9 minutes * $1 per minute)) = $<<3*(20+9*1)=87>>87
The total is $30 + $54 + $87 = $<<30+54+87=171>>171.
#### 171
Grant spends $200.00 a year to have the newspaper delivered daily to his house. Juanita buys the newspaper daily. Monday through Saturday, she spends $0.50 and on Sunday she spends $2.00.

Question: How much more money does Juanita spend buying the newspaper yearly than Grant?
Answer: Monday through Saturday Juanita buys the paper for $0.50 so that's 6*$0.50 = $<<6*0.5=3.00>>3.00
She spends $2.00 for Sunday and $3.00 for the other 6 days so she spends $2 + $3 = $<<2+3=5.00>>5.00 for the newspaper weekly
Over 52 weeks she spends 52*$5 = $<<52*5=260.00>>260.00
Juanita spends $260.00 on the newspaper for the year and Grants spends $200.00 a year so Juanita spends $260-$200 = $<<260-200=60.00>>60.00 more
#### 60
John used to be able to squat 135 pounds. After training, he increased that by 265 pounds. He then gets a magical strength-increasing bracer that increases his strength by an additional 600%.

Question: How much can he now lift?
Answer: He can lift 135+265=<<135+265=400>>400 pound without the bracer
The bracer adds 400*6=<<400*6=2400>>2400 pounds
So he can now squat 2400+400=<<2400+400=2800>>2800 pounds
#### 2800
Ginger likes to make cakes for every holiday for people. She has 2 children, each of whom she bakes a cake for on their birthdays, Christmas, Easter, and Halloween. She has a husband for whom she makes a cake on these same holidays, as well as on their anniversary and Valentine's Day. Lastly, she makes both her parents cakes as well, but only for their birthdays since they live far away.

Question: How many cakes does she make in 10 years?
Answer: Ginger has 2 children whom she bakes for 4 times a year, for 2*4= <<2*4=8>>8 cakes.
She makes her husband 6 cakes a year.
She makes each of her 2 parents a cake for 2*1=<<2*1=2>>2 cakes.
On a yearly basis, she therefore makes 8+6+2= <<8+6+2=16>>16 cakes.
In 10 years, she would make 16*10=<<16*10=160>>160 cakes.
#### 160
7 out of 40 people in a cafeteria are wearing checkered shirts. The rest of the people are wearing vertical stripes and horizontal stripes. The number of people wearing horizontal stripes is 4 times as many as the people wearing checkered shirts.

Question: How many people are wearing vertical stripes?
Answer: 40 people - 7 people = <<40-7=33>>33 people are wearing stripes.
The number of people wearing horizontal stripes is 4 horizontal stripes/checkered shirt x 7 checkered shirts = <<4*7=28>>28 horizontal stripes
The number of people wearing vertical stripes is 33 total stripes - 28 horizontal stripes = <<33-28=5>>5 vertical stripes
#### 5
Donna made a cake to take to a party where the guests ate half the cake. The day after the party, she shared half the leftovers with her brothers. The following day, she ate one piece as a midnight snack. Twice as many pieces as her snack were left.

Question: How many pieces was the cake to begin with?
Answer: Donna had 2 * 1 = <<2*1=2>>2 pieces of cake left.
Before her snack, there were 2 + 1 = <<2+1=3>>3 pieces left.
Those 3 pieces were half the leftovers, so she had 3 * 2 = <<3*2=6>>6 pieces before sharing with her brothers.
Those 6 pieces were half the party leftovers, so the cake was 2 * 6 = <<6*2=12>>12 pieces before the party.
#### 12
A survey was conducted by a school to the parents about their children's online class experience. Fifteen percent of the respondents rated Excellent; 60% rated Very Satisfactory; 80% of the remaining respondents rated Satisfactory and the rest rated Needs Improvement.

Question: If 120 parents answered the survey, how many of them rated Needs Improvement?
Answer: The total percentage of those who rated Excellent or Very Satisfactory is 15% + 60% = 75%.
Seventy-five percent of the parents is 120 x 75/100 = <<120*75/100=90>>90.
Hence, 120 - 90 = <<120-90=30>>30 students rated either Satisfactory or Needs Improvement.
A total of 30 x 80/100 = <<30*80/100=24>>24 parents rated Satisfactory.
Therefore, 30 - 24 = <<30-24=6>>6 parents rated Needs Improvement.
#### 6
Cary starts working at Game Stop for $10/hour. She gets a 20% raise the first year, but the second year the company's profits decrease and her pay is cut to 75% of what it used to be.

Question: How much does Cary make now?
Answer: First find the amount of Cary's raise by multiplying $10 by 20%: $10 * .2 = $<<10*.2=2>>2.
Then add Cary's raise to her initial wage to find her wage after one year: $10 + $2 = $<<10+2=12>>12.
Then multiply that wage by 75% to find Cary's wage after her pay cut: $12 * .75 = $<<12*.75=9>>9.
#### 9
Shawn collected 40 plain pebbles. He painted 9 pebbles red and 13 pebbles blue. He then divided the remaining pebbles equally into 3 groups, and painted them purple, yellow, and green.

Question: What is the difference between the number of blue and yellow pebbles?
Answer: After painting the red and blue pebbles, Shawn had a remainder of 40 - 9 - 13 = <<40-9-13=18>>18 pebbles.
He painted 18/3 = <<18/3=6>>6 pebbles yellow.
The difference between the number of blue and yellow pebbles is 13 - 6 = <<13-6=7>>7.
#### 7
Phoebe has two pizzas to share with her and three friends. One has pepperoni and the other has cheese. They both have 16 slices. They all eat the same amount. One friend eats only pepperoni, while the rest have an equal number of slices of each.

Question: At the end, there is one slice of pepperoni left and 7 slices of cheese, how many slices does each person eat?
Answer: They are 9 slices of cheese because 16 - 7 = <<16-7=9>>9
They ate three slices of cheese each because 9 / 3 = <<9/3=3>>3
They are 6 slices each in total because 3 x 2 = <<3*2=6>>6
#### 6
Alice wants 1000 folded paper cranes. She folds half by herself, and a friend folds a fifth of the remaining paper cranes for her.

Question: How many paper cranes does Alice still need to fold?
Answer: Alice folds 1000 * 0.5 = <<1000*0.5=500>>500 paper cranes by herself.
This leaves 1000 – 500 = <<1000-500=500>>500 paper cranes left to fold.
A friend folds a fifth of the remaining amount, so they have folded 500 / 5 = <<500/5=100>>100 paper cranes for her.
This means there is a total of 1000 – 500 – 100 = <<1000-500-100=400>>400 paper cranes left for Alice to fold.
#### 400
A pad of paper comes with 60 sheets. Evelyn uses a pad of paper writing notes at work every week. She takes Monday and Friday off from work.

Question: How many sheets of paper does she use per day at work?
Answer: Evelyn takes two days a week off from work, so she is at work 7 - 2 = <<7-2=5>>5 days a week.
Thus, she uses 60 / 5 = <<60/5=12>>12 sheets of paper per day at work.
#### 12
Jim decides he wants to practice for a marathon coming up. He starts off by running 5 miles every day for 30 days straight. He then pushes himself to run 10 miles a day for the next 30 days. Finally, as marathon day gets closer Jim runs 20 miles a day for 30 days straight.

Question: How many miles does Jim run in total during the 90 days?
Answer: Jim runs 5 miles a day for 30 days for a total of 5*30=<<5*30=150>>150 miles.
The next month Jim runs 10 miles a day for 10*30= <<10*30=300>>300 miles.
The last month Jim runs 20 miles a day for 20*30=<<20*30=600>>600 a month.
All together, Jim runs 150+300+600= <<150+300+600=1050>>1050 miles in three months.
#### 1050
I caught 4 fewer fish than the number in my tank and added them to my fish tank.

Question: If the tank has 20 fish right now, how many did I add?
Answer: Let's say the number of fish that was in the tank before was x
If you caught 4 fewer fish than the number that was there, then you caught x-4
After adding x-4 fish into the tank, the tank now had 20 fish, meaning the total number of fish in the tank is x+x-4=20
2x=20+4
The total number of fish that was initially in the tank is 2x=24
Initially, there were x=24/2 fish in the tank
x=<<12=12>>12
If you caught 4 fewer fish than the number in my tank initially, you caught 12-4=<<12-4=8>>8 fish.
#### 8
Celia is creating a budget for the next 4 weeks. She wants to spend no more than $100 a week on food. For rent for her apartment, she plans to spend $1500. She has $30 set aside for video streaming services for the month. She also has $50 planned for one month of cell phone usage. After she adds up all of her spending for the month she wants to set aside 10% of it to put into savings.

Question: How much money is Celia going to put into her savings account?
Answer: Celia has budgeted $100 a week for 4 weeks for food, $100 x 4 = $<<100*4=400>>400 worth of food for the month.
She has one monthly cost of $1500 for her rent + $30 for video streaming services + $50 for her cell phone = $<<1500+30+50=1580>>1580 of single monthly costs.
Celia wants to set aside 10% of the $400 + $1580 = $<<400+1580=1980>>1980 for her savings account.
10% of her savings account is .10 x 1980 = $<<.10*1980=198>>198 to add to her savings account.
#### 198
Due to a drought, Jerry's household can only use 1000 gallons of water during July. Jerry uses 100 gallons for drinking and cooking and 20 gallons per shower. He wants to fill his pool, which measures 10 feet by 10 feet by 6 feet.

Question: If each gallon of water fills 1 cubic foot of the pool, how many showers can Jerry take in July?
Answer: First find the total volume of the pool: 10 feet * 10 feet * 6 feet = <<10*10*6=600>>600 cubic feet. This is also the number of gallons he needs to fill the pool.
Subtract the pool water and the drinking and cooking water from the total amount of water Jerry is allowed to use: 1000 gallons - 600 gallons - 100 gallons = <<1000-600-100=300>>300 gallons
Then divide the amount of water Jerry has left to use for showers by the amount of water per shower to find how many showers he can take: 300 gallons / 20 gallons/shower = <<300/20=15>>15 showers
#### 15
Fabian went to a park to get some fresh air. He decided to walk there for 3 hours. Every hour he covers 5 kilometers.

Question: How many more hours did Fabian need to walk to reach a total of 30 kilometers?
Answer: To walk 30 kilometers, Fabian would need to walk for 30 km / 5 km/hour = <<30/5=6>>6 hours.
As he had already walked for 3 hours, he would need to walk for another 6 hours - 3 hours = 3 hours.
#### 3