def line_points(y1, y2, line):
    """
    Given the slop and intercept of a line returns the points of the line.
    """
    if line is not None:
        slope, intercept = line
        if slope > 0 or slope < 0:
            x1 = int((y1 - intercept) / slope)
            x2 = int((y2 - intercept) / slope)
            y1 = int(y1)
            y2 = int(y2)
            return [(x1, y1), (x2, y2)]
    else:
        return None