This is LaTeX code:
[latex]
f \ : \ \{1,2\} \rightarrow G_{1} \cup G_{2}
[/latex]