I am reading Martin Baxter's book on Financial Calculus and in it, the product rule for the common Brownian motion case is described. I cannot understand how the Ito's formula applies here.
First, we start with $$ dX_t = \sigma_t dW_t + \mu_t dt $$
$$ dY_t = \rho_t dW_t + \nu_t dt $$
The book now says that by applying Ito's lemma to $f(X_t, Y_t) = \frac{1}{2}\left( (X_t + Y_t)^2 - X_t^2 - Y_t^2 \right) = X_t Y_t$ we can see that:
$$ d(X_t Y_t) = X_t dY_t + Y_t dX_t + \sigma_t \rho_t dt $$
How is Ito's lemma applied to $f(X_t, Y_t)$? Ito's lemma states that if $dX_t = \sigma_t dW_t + \mu_t dt$ and $Y_t = f(X_t)$ then:
$$ dY_t = \sigma_t f'(X_t) dW_t + \left( \mu_t f'(X_t) + \frac{1}{2} \sigma_t^2 f''(X_t) \right) dt $$
but I don't yet know how to apply this to a function of 2 stochastic variables and the book hasn't mentioned anything about the application in this case.
I see the result for $d(X_tY_t)$ but I don't understand how we got it by applying Ito's lemma.