To write the linear equation in slope-intercept form, which is given by the formula:
\[ y = mx + b \]
where \( m \) is the slope and \( b \) is the y-intercept (initial value).
In this case:
- The initial value \( b \) is 2.
- The slope \( m \) is \(-1\).
Substituting these values into the equation:
\[ y = -1x + 2 \]
or simply:
\[ y = -x + 2 \]
This is the linear equation representing the function.