def translateValue(value: str) -> int:
    """Translates the string representation of an Item to an LED brightness

    Args:
        value (str): The given String block

    Returns:
        int: The LED brightness value for that block [0,9]
    """
    if value == "P":
        return 9
    elif value == "B":
        return 4
    else:
        return 0