# Slope Calculator

The slope calculator will find the slope of the line passing through the two given points or the slope of the given line, with steps shown.

## Solution

**Your input: find the slope given two points $$$P=\left(2, 3\right)$$$ and $$$Q=\left(5, 9\right)$$$.**

The slope of a line passing through the two points `P=(x_1, y_1)` and `Q=(x_2, y_2)` is given by `m=(y_2-y_1)/(x_2-x_1)`.

We have that $$$x_1=2$$$, $$$y_1=3$$$, $$$x_2=5$$$, $$$y_2=9$$$.

Plug the given values into the formula for slope: $$$m=\frac{\left(9\right)-\left(3\right)}{\left(5\right)-\left(2\right)}=\frac{6}{3}=2$$$.

**Answer: the slope of the line is $$$m=2$$$.**