A Study of a Compound Solar Eruption with Two Consecutive Erupting Magnetic Structures