Using the formula:
\[
a_n = a + (n-1)d.
\]
For the second term:
\[
a + d = 13 \quad \cdots (1).
\]
For the fifth term:
\[
a + 4d = 25 \quad \cdots (2).
\]
Subtracting equation (1) from equation (2):
\[
(a + 4d) - (a + d) = 25 - 13.
\]
\[
3d = 12.
\]
\[
d = 4.
\]