def get_line(p1, p2, x):
    """
    Args:
        p1: point 1
        p2: point 2
        x: x coordinate
    Returns:
        y coordinate with respect to x
    """
    x1, y1 = p1
    x2, y2 = p2
    y = (x - x1) / (x2 - x1) * (y2 - y1) + y1

    return y