def midpoint2(x1: float, y1: float, x2: float, y2: float) -> complex:
    """ Returns the Midpoint between two numbers on a line"""

    x = (x1 + x2) / 2
    y = (y1 + y2) / 2

    return complex(x, y)