To write the equation of a linear function in the form \(y = mx + b\), you need to identify the values of \(m\) (slope) and \(b\) (y-intercept).
From the information given:
- The slope \(m\) is 2.
- The y-intercept \(b\) is 7.
Substituting these values into the equation gives:
\[ y = 2x + 7 \]
So, the equation of the function is \(y = 2x + 7\).