"So the process is, calculate the third unknown side using pythagoras and then tan a = opposite side / closest side. "
This is correct.
The "closest" side is called the "adjacent" side.
The "opposite" side is just that.
The longest side is called the "hypotenuse".
.