def position_order(open: list, close: list):
    """
    Pair open position order with close position orders
    :param open: a list of orders that may have an open position order
    :param close: a list of orders that may have an close position order
    :return: A tuple containing a pair of an open order with a close position order
    """
    for o in open:
        for c in close:
            if o.position == "OPEN" and c.position == "CLOSE":
                open.remove(o)
                close.remove(c)
                return (o, c)
    return None