Interest-bearing Debt to Assets

Alsalam Alykom

I invested in sharia compliant company, medical projects but I found out that their interest debt to the assets is 40%.

I made 5,000$ profit.

Now, I have give a way the whole 10%?
Or to give away the interest that paid on the 10%?

Shokran Jazakom Allah khair.