The total number of carboxylic acid groups in the product P is
\begin{matrix} \text { 1. } H _3 O ^{+}, \Delta \\ {\xrightarrow {\hspace{2 cm}}} & P \\ \text { 2. } O_3 \\ \text { 3. } H_2O_2 \\\\\\\\\\\\\\\ \end{matrix}
\begin{matrix} \overset{H_3O^+}{\underset{\text{heat}}{\xrightarrow {\hspace{2 cm}} }} \\\\\\\\\\ \end{matrix}
\begin{matrix} \overset{O_3}{\underset{H_2O_2}{\xrightarrow {\hspace{2 cm}} }} \\\\\\\\\\ \end{matrix}