This can be done using the "profile/merge" tool, it's the fifth one from the left. Click on your first track, then shift-click on your second track. Then right click to save it as a new track. You also have the option to reverse the last leg (so that the track goes the right direction).