Freddie is walking for a charity at a constant rate. After two hours, Freddie has walked 4 miles. At 4 hours, he had walked 8 miles. Write an equation to find the total distance, y, after x hours. How long will it take Freddie to walk 25 miles?​