def equity(assets, liabilities):
    """
    Computes shareholders' equity.

    Parameters
    ----------
    assets : int or float
        Total assets
    liabilities : int or float
        Total liabilities

    Returns
    -------
    out : int or float
        Shareholders' equity
    """
    return assets - liabilities