drew52:
Not sure what help argueing about whether a lap is 1 or 2 lengths is going to help the op get through the 400m swim in the allotted time.
As long as the op can figure out the necessary lengths/laps that need to be done for that distance it doesn't really matter whether it is 16 lengths, 16 laps or 8 laps (as long as it is 400m and not 800m).
No matter how you count (as a swimmer and coach a lenght= a lap to me), you still have to be in shape for an endurance swim - so, with that in mind start with LSD, long slow distance, go as far as you can for 15 minutes, stopping as needed -- each day increase distance - then as you get in shape increse to 20, then 30 minutes - alternate swim, pull (with a buoy) and kick -if possible get a lifeguard with a swim background and/or a coach to help you with technique help - I bought a pair of US Divers swim fins that help as well; they help keep your legs near the surface and keeps shoulder pain down -
the suggestion of doing 50 yd repeats is good, but get your aerobic base first - be able to swim 400 yds w/o stopping before trying this as it can be intense - found out how fast you go a 50 yd/meter, or whatever down and back is in a short course pool, add approx 15-20 seconds, and then do your repeats at that interval -
so as an example if you do a 50 in 1:18, I would start by doing 5-10 x 50 @1:40 - so if you do 1:18 on all, you get 22 seconds rest between; if you get faster, as you should once in shape, you'll get more rest - take your heart rate at least once a week, you should find that the HR will go down as you get in shape, that means doing 1:18 is easier, so it's time to drop the interval and go a few seconds faster
to give you an idea, 2 years ago I had a 12 YO boy on my club, he was a 6:00 400 free in the middle school meets and couldn't do 50's every minute, which I think is a minimum baseline for an agegroup swimmer - now, at 14 he is repeating 50's every 40 seconds and went a 5:32 in his 500 last weekend, so probably 4:26 or so at the 400 - not great age group times, but it shows the progression of how to utilize faster intervals to build endurance - of course one of my DM candidates was in the lap swim lane next to him at practice last week and got smoked

but when he realized how quick alex was compared to the standards he was OK with it -
so figure what you need to average per 50 to meet your goal time, and work to attain that time with a short rest interval over 8-10 x 50:
5 points = :45 or better per 50 yds (under 6:00)
4 points = 1:00 or better per 50 yds (6:00-8:00)
3 points = 1:15 or better per 50 yds (8:00-10:00)
2 points = 1:30 or better per 50 yds (10:00-12:00)
1 point - finish
the math is simple, the work is what is hard - go to it!!