documentclass[12pt]{article}
\usepackage{xparse}
\begin{document}
% #1 and #2 are ordered pairs
\NewDocumentCommand{\coord}{ m m }
{
#1, #2
% Ordered pairs which correspond to first value of first pair and
% second value of second pair, etc.
(#1[1], #2[2]), (#1[2]. #2[1])
}
\coord{(1, 2)}{(3, 4)}
\end{document}