def answer(s):
    """
    Calculates the number of salutes in the hallway
    ----------
    s : string
        Hallway formation containing chars <,>,-

    Returns
    -------
    solute_count : int
        Number of salutes

    Doc Test
    ----------
    >>> answer('>----<')
    2

    >>> answer('<<>><')
    4

    >>> answer('--->-><-><-->-')
    10
    """
    solute_count = 0
    for i, c in enumerate(s):
        if c == '>':
            solute_count += s[i+1:].count('<')
    return solute_count * 2