def from_ternary(ternary: str) -> int:
    """Converts a ternary number to its decimal (base 10) equivalent.

    Args:
        ternary (str): The ternary score.

    Returns:
        int: The decimal score.
    """
    value = 0
    digits = (int(digit) for digit in reversed(list(ternary)))
    for i, num in enumerate(digits):
        value += num * (3**i)
    return value