Ok, I think you tried to form rectangles. And, I am assuming all the vertices are distinct. So when you are forming a rectangle, it is tantamount to finding the number of ways you can draw its diagonals.
Now, choose the first vertex, that can be done in $\color{red}{12}$ ways(assuming all the vertices are distinct).
So, in order to find diagonally opposite vertex, you can have only one way(because each vertex has unique diametrically opposite vertex in an even sided regular polygon), so, in $\color{red}{1}$ way.
Now, you have to find another vertex. As, only $\color{red}{10}$ points are left, you can do this in $\color{red}{10}$ ways. And its diametrically opposite vertex in $\color{red}{1}$ way.
So, the number of way is $$\color{blue}{12\times 1\times 10\times 1=120}$$
And, here I forgot to remove the repeatings. In this form of counting, each rectangle is counted $8$ times. So divide the above number by $8$. So, the ultimate result is $$\color{blue}{\frac {120}8=15}.$$