For a Lie group $T(\theta)$ depending on a finite set of real parameters $\theta^a$,Weinberg (in his QFT book - Equations 2.2.17, 2.2.18, 2.2.19, p54) expands the unitary representations of $T$ in the neighbourhood of the identity as $$U(T(\theta)) = 1 + \theta^a t_a + \frac{1}{2}\theta^b\theta^c t_{bc}+ ... \tag{2.2.17}$$ and for the product of two representations $$U(T(\bar{\theta}) U(T(\theta)) = U(T(f(\bar{\theta},\theta)))\tag{2.2.18}$$ does the expansion $$f^a(\bar{\theta},\theta) = \theta^a + \bar{\theta}^a + f^a_{bc}\bar{\theta}^b\theta^c.\tag{2.2.19}$$
The main thing I don't understand is how the coefficients and indices are being determined in these expansions. The expansion of $U(T(0))$ is presumably a taylor series expansion around 0, but then I don't understand why only the parameter $\theta^a$ appears in the second term and then is replaced by $\theta^b\theta^c$ in the third term, or why $t_a$ changes to $t_{bc}$ and isn't squared in the third term. I have similar confusions about the change in parameters in the third term of the product expansion.
If someone could tell me precisely what formula Weinberg is using I would appreciate it.