To write the equation of the function in the form \( y = mx + b \), where \( m \) is the slope and \( b \) is the y-intercept, you can use the provided values:
- Slope (\( m \)) = 2
- Y-intercept (\( b \)) = 7
Substituting these values into the equation form gives:
\[ y = 2x + 7 \]
So, the equation of the function is:
\[ y = 2x + 7 \]