Can someone please help me create this table? I know it requires \multicolumns and I've looked at other threads, but I'm still unable to set up the columns as they are here. I'm sorry my knowledge of latex is only basic. Thanks.
Here's what I've tried:
\documentclass[a4paper,12pt]{book}
\usepackage{amsmath}
\usepackage{apacite}
\usepackage{graphicx}
\usepackage[usenames, dvipsnames]{color}
\usepackage{bm}
\pagestyle{plain}
\usepackage{setspace}
\onehalfspacing
\raggedbottom
\usepackage{mathtools}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{table*}
\begin{tabular}{p{1.2cm}p{1.2cm}p{1.3cm}p{1.2cm}p{1.2cm}p{1.2cm}p{1.2cm}}
\hline
&\multicolumn{1}{l}{Variables}&&\multicolumn{6}{l}{Type of employment}\\
\cline{2-8}
&\multicolumn{2}{c}{Informal}&&\multicolumn{2}{c}{Formal}&&\multicolumn{2}{c}{Total}\\
\cline{2-4}\cline{6-8}
&\textit{n}=6036&\%&&\textit{n}=876&\%&&\textit{n}=6912&\%&100\%\\
\hline
Age 15-24&&663&20.944&&19&5.791&&682&20.019\\
\hline
\end{tabular}
\end{table*}
\end{document}


\documentclass{...}and ending with\end{document}. re typing your table from scratch is not fun ... – Zarko May 17 '18 at 04:48\hline \end{tabular} \end{table*}
– user151731 May 17 '18 at 10:46{}. – Torbjørn T. May 17 '18 at 10:54