def solve_linear(a, b):
    """
    Solve the linear equation a*x+b=0 and return the result in t and the number of solutions in num.
    :param a:
    :param b:
    :return: the result and the number of solution
    """
    if a == 0:
        return None, 0
    return -b / a, 1
