Liam is participating in a charity run. He plans to run a total of 25 miles over the next five days. On the first day, he runs 3 miles. On the second day, he doubles the mileage of the first day. On the third day, he runs 5 miles less than what he ran on the second day. On the fourth day, he runs 2 more miles than he did on the third day. How many miles does he need to run on the fifth day to meet his 25-mile goal?