from typing import List


def spatial_to_serial_order(hole_sequence: List[int],
                            holes: List[int]) -> List[int]:
    """
    Converts a temporal sequence of spatial holes into a list of serial
    order positions.

    Converts the list of spatial holes in use (``hole_sequence``) and the
    temporal sequence of hole indexes (``holes``) into a sequence of spatial
    hole numbers.

    Args:
        hole_sequence: ordered list of spatial hole numbers to be presented
            in the first phase of the task, e.g. [3, 1, 4].

        holes: spatial hole numbers to be enquired about: "what was the
            temporal order of these holes in the first phase?"; e.g. [4, 3].

    Returns:
         list of serial order positions (in this example: [3, 1]).
    """
    return [hole_sequence.index(h) + 1 for h in holes]