from typing import Tuple


def InterpolateValue(x: float, xy0: Tuple[float, float], xy1: Tuple[float, float]) -> float:
    """Get the position of x on the line between xy0 and xy1.

    :type x: float
    :type xy0: Tuple[float, float]
    :type xy1: Tuple[float, float]
    :return: y
    :rtype: float
    """
    if xy0[0] < xy1[0]:
        min_xy = xy0
        max_xy = xy1
    else:
        min_xy = xy1
        max_xy = xy0

    a = (max_xy[1] - max_xy[1]) / (max_xy[0] - min_xy[0])
    b = min_xy[1] - a * min_xy[0]

    return a * x + b