Step 1: Formula for the Slope of a Line
The slope \( m \) of a straight line passing through two points \( (x_1, y_1) \) and \( (x_2, y_2) \) is given by:
\[
m = \frac{y_2 - y_1}{x_2 - x_1}
\]
Step 2: Substitute the Coordinates of Points A and B
We are given the points \( A(2, 3) \) and \( B(4, 5) \). So, \( x_1 = 2 \), \( y_1 = 3 \), \( x_2 = 4 \), and \( y_2 = 5 \).
Substituting these values into the slope formula:
\[
m = \frac{5 - 3}{4 - 2} = \frac{2}{2} = 1
\]
Step 3: Conclusion
Therefore, the slope of the line AB is \( 1 \).