The same way 120 and 360 can have the same reference angle.
Explanation:
The reference angle is tge acute angle measured with reference to the terminal side of x-axis. (A photo is attached. Just check).
Example:- Consider angles 120 and 480 degrees.
(Angle 120 looks like from second photo attached)
(Angle 480 looks like the third image attached.) {Note: 480=360+120}.
From the attached images, we see that both 120 and 480 have the same reference angles.
Therefore, it is possible.
The only requirement is that if the original angle is M, then the other angle is M + 360.