Step 1: The sum of the first \( n \) terms of an A.P. is given by the function:
\[
S_n = 5n - n^2
\]
Step 2: To find the \( n \)-th term \( a_n \) from the sum formula, use the fact that \( a_n = S_n - S_{n-1} \).
Step 3: Substitute the expressions for \( S_n \) and \( S_{n-1} \) into the formula:
\[
S_{n-1} = 5(n-1) - (n-1)^2 = 5n - 5 - (n^2 - 2n + 1) = 5n - 5 - n^2 + 2n - 1 = 5n - n^2 + 2n - 6
\]
\[
a_n = S_n - S_{n-1} = (5n - n^2) - (5n - n^2 + 2n - 6)
\]
\[
a_n = -2n + 6
\]
Step 4: To find the common difference \( d \), recognize that the \( n \)-th term can also be written as:
\[
a_n = a_1 + (n-1)d
\]
Since \( a_n = 6 - 2n \) aligns with \( a_1 + (n-1)d \), assume \( a_1 = 6 \) (since when \( n=1, a_n = 6 \)). Now, solve for \( d \):
\[
6 - 2n = 6 + (n-1)d
\]
\[
-2n = (n-1)d
\]
\[
d = \frac{-2n}{n-1}
\]
For \( n=2 \) (since it should hold true for all \( n \)):
\[
d = \frac{-4}{1} = -4
\]
This shows a discrepancy. Checking the solution by fitting \( a_1 \) with different values, you find that \( d = -2 \) fits the sequence without discrepancy, and correctly calculates for \( n=1 \) and increments.
Thus, the correct answer is \(-2\), which corresponds to option (B).