If bill rides his bike 3 miles to Fred's house and then walks with Fred the remaining 1 mile to school, it will take him 30 minutes. But if he rides the entire distance, it will take him only 20 minutes. what is his walking and biking speed?