In the problem, reference angle is calculated based on the longest side and in north direction.
Also, i am relatively new, please keep it easy for a newbie. Thank you