def linear(x0: float, x1: float, p: float):
    """
        Interplates linearly between two values suchh that when p=0
        the interpolated value is x0 and at p=1 it's x1
    """
    return (1 - p) * x0 + p * x1