haraam money

Haraam investments

Q: I was investing in haraam till now. Although I didn't know about it, I was again trapped by one of my friends and again invested in haraam for which I will get a good return.

1. One of my friends is in very much debt. Can I pay this money for his debt or 2. In my examination I have paid some money to my professor to help me get some answer in my paper through cheating. I have taken this money on credit and I know this is wrong and haraam. Can I pay this debt of mine through that haraam income?

3. If the above things are not allowed, tell me what should I do with this haraam money?