Various questions about ill-gotten money

Giving a debt in charity on behalf of the owner with his consent