Equivalence of Definitions of Unital Subalgebra

Theorem
Let $R$ be a commutative ring.

Let $\left({A_R, *}\right)$ be an unital algebra over $R$ whose unit is $1_A$.

Let $\left({B_R, *}\right)$ be a subalgebra of $A_R$.