This is LaTeX code:
[latex]
f(1)=a \in G_{1}, \ f(2)=b \in G_{2}
[/latex]