There are several variations and formats for triathlon relays. Broadly there are three are main structures to a triathlon relay:
(i) A team mate each completes one of the disciplines (one full triathlon, normally with a classic distance, is completed by the team)
(ii) Each team member completes a full triathlon (usually a short triathlon, similar to a super-sprint) before passing onto the next team mate
(iii) The first team mate completes the swim and passes onto the next team mate to complete their swim and so on, this is then repeated for the bike and the run (again, the distances are usually similar to a super-sprint).