def get_expertise_coefficient(number_of_match, elo):
    """Get expertise coefficient corresponding to an user's elo and matches."""
    if number_of_match < 40:
        return 40
    elif elo < 2400:
        return 20
    else:
        return 10