On 24 October 1795 their representatives signed a treaty , dividing the remaining territories of the Commonwealth between their three countries . On 24 October 1795 their representatives signed a treaty , dividing the remaining territories of the Commonwealth among their three countries .