Interpretation of multiwavelength observations of November 5, 1980 solar flares by the magnetic topology of AR 2766