This is an easy one.
Simply ask the others how much they want from you to get out.
Then give it to them.
Naturally, your lawyer should draw up all the papers for the others to sign.
Q: My main question here is that, can you be charged with anything if you are in the same house when it is searched and marijuana is found?
A: Yes. It's called constructive possession. You need to hire a lawyer ... yesterday.