I just replaced all the brake lines in my 40.
I used a steel tube that had a corrosion resistant coating on it called poly armor. Carried at Autozone. If you are gonna do all the lines, you will probably need a little more than 25 feet.
Unless your 40 is different than mine you should only need three softlines, One on the rear with a tee and two on the front. One going to each caliper.
The part you want for the hoses going to the caliper #BH38009.
Good luck!
I'm pretty sure you have 4 flex lines... one from frame to rear axle, one from frame to front axle and one to both front calipers...