>>108457a 40 mile backpacking trip for a complete noob is easily doable in 2 nights.
40 mile days are possible, people who do record runs of the JMT (220 miles or so) hit 70 mile days with like 10k elevation gain every day, but they work up to that.
Point is, you probably won't enjoy it. Keep in mind that a 20 minute mile pace is standard military rucking speed, no time to smell the flowers. or look around or explore.
I mean, I'm sure you could do it and not die, just wouldn't be really enjoyable