Magnetic structures and energy of 1989 March flares