Magnetic interactions during sympathetic solar eruptions