I've got the ordered pairs $(1491947996, 15.7)$ and $(1491948898, 12.9)$. The X values in each set indicate the seconds from Unix Epoch and the Y values in each set indicate the temperature in Celsius.
I'm trying to determine the X-coordinate where $Y = 15$ (degrees Celsius), which will tell me the precise time in seconds when a temperature dropped below a safe-zone of 15°C.
Naturally, $y = mx + b$, and $x = \frac{y-b}{m}$. I've got the slope, which is $0.003$, using $\frac{y2 - y1}{x2 - x1}$, or $\frac{12.9 - 15.7}{ 1491948898 - 1491947996}$
I guess what I don't know is how to define $y$ or $b$ in this case. I thought $y$ would certainly be $15$, but I guess I'm lost. It's been a long time since my last algebra course.
Offset the measurements by $$ x_{0} = 1491947995 $$ The transformation is $\tilde{x} = x - x_{0}.$ (As noted by @Ross Millikan.)
Now the data looks like this: $$ p = \left\{ 1, 15.7 \right\}, \qquad q = \left\{ 903, 12.9 \right\} $$
The equation for a line in slope-intercept form: $$ y(x) = mx + b $$
The slope is computed via $$ m = \frac{p_{y} - q_{y}} {p_{x} - q_{x}} $$
The intercept can be computed from either $p$ or $q$: $$ m = p_{y} - m p_{x} $$
To find the solution point, solve for $x$: $$ 15 = m x + b $$
Slope $m$
$$ m = \frac{p_{y} - q_{y}} {p_{x} - q_{x}} \approx -0.00310421286031042 $$
Intercept $b$
$$ m = p_{y} - m p_{x} \approx 15.70310421286031 $$
Solution
$$ \color{red}{s} = \left\{ \frac{15 - b}{m}, 15 \right\} = \color{red}{\left\{ 226.5 , 15 \right\}} $$