Liam biked for 3 hours at a speed of 8 mph and then walked the remaining part of his way at a speed of 3 mph. If the total distance he covered was 30 miles, how much time did he walk?