from typing import List
from typing import Optional


def get_team_position(team: str, ranking: List[str]) -> Optional[int]:
    """ Get team position in a ranking. """
    if team not in ranking:
        return None
    return ranking.index(team) + 1