Answer:
(ab + 9b)/6b hour
Step-by-step explanation:
Assuming the distance from their home to the restaurant is a meter
Average speed = 3mph
At halfway point, they had walked a/2 meter
Time taken to reach halfway point = a/2 ÷ 3 = a/6 hour
Assuming Bob's new constant speed is bmph
Time taken to return home from halfway point = a/2 ÷ b = a/2b hour
Time taken to get to the restaurant from home = a/b hour
Total taken = a/6 + a/2b + a/b = (ab + 9b)/6b hour