Best Training Plan for 45 mile MTB race?

Looking for some advice from the group. What are some of the training plans you would recommend for an endurance MTB race?

I have about 9 weeks until the race, which is about 45 miles long. Coming from a decent fitness level now, but need to increase my endurance for longer rides/races. Hoping to be on the bike around 5 hours.