The S matrix of 6D super Yang-Mills and maximal supergravity from rational maps | Synapse