def score_compressed_state(total, trumps):
    """
    Calculate score from compressed state
    """
    score = 0
    for num_trumps in range(trumps, -1, -1):
        score = total + num_trumps * 10
        if score <= 31:
            break
    return score