When driving a 50-foot truck at 50 mph, you should maintain a following distance of at least:

When traveling at speeds below 40 mph, you should maintain at least one second of following distance for every 10 feet of your vehicle's length. At higher speeds, add an additional second.
DMV Writen Test