An equation of a line parallel to a given line can be obtained by using the slope-intercept form. If the given line has a slope of m, the equation of a parallel line with a y-intercept of b is y = mx + b. The slope remains unchanged for parallel lines, while the y-intercept indicates the vertical shift from the given line.