Dan is working with the equation of a linear relationship:
$$y = 2x - 4$$
He wants to find out the value of $$y$$ when $$x$$ is equal to 5. Calculate the value based on the given equation.