Here, I'll try to kinda wing this answer for you.
So, we know cot = 6, right?
We should know that cot = 1/tan
We also know that tan means opposite over adjacent.
Since cot = 1/tan, tan = 1/6
this means our opp is 1, and our adj is 6
So we have two sides, the opposite and the adjacent.
We know through Pythagorean theorem that a^2 + b^2 = c^2 and a & b are 1 & 6.