We can draw a triangle where 12 is an adjacent leg (because it is value of x), and 5 is an opposite leg ( because it is a value of y). The angle, for which we are going to find cotangent, is the angle between x-axis, and line connecting points (0,0) and (12,5).
Cot = adjacent/opposite = 12/5 =2.4