\[\boxed{\mathbf{2.}\mathbf{316}}\]
\[a = \frac{3}{7}:\]
\[\frac{3}{7} \cdot \frac{3}{7} = \frac{9}{49}.\]
\[a = \frac{1}{2}:\]
\[\frac{3}{7} \cdot \frac{1}{2} = \frac{3}{14}.\]
\[a = 2\frac{1}{7} = \frac{15}{7}:\]
\[\frac{3}{7} \cdot \frac{15}{7} = \frac{45}{49}.\]
\[a = 2\frac{1}{3} = \frac{7}{3}:\]
\[\frac{3}{7} \cdot \frac{7}{3} = 1.\]
\[a = \frac{28}{33}:\]
\[\frac{3}{7} \cdot \frac{28}{33} = \frac{4}{11}.\]
\[b = \frac{1}{5}:\]
\[\frac{1}{5} \cdot \frac{5}{12} = \frac{1}{12}.\]
\[b = \frac{5}{12}:\]
\[\frac{5}{12} \cdot \frac{5}{12} = \frac{25}{144}.\]
\[b = 1\frac{1}{5} = \frac{6}{5}:\]
\[\frac{5}{12} \cdot \frac{6}{5} = \frac{1}{2}.\]
\[b = 2\frac{2}{5} = \frac{12}{5}:\]
\[\frac{5}{12} \cdot \frac{12}{5} = 1.\]