1:whatever tu do don't call them a jerk(that would just make them get defensive) 2:stay as calm as tu can 3:make sure tu and your friend are alone when tu tell them 4:give them a example.like tu say" yesterday at lunch tu dicho I was stupid and that hurt my feelings.It would be cool of tu to not say mean things;can tu do that for me?" that is just a example. If your friend is not understanding then I wouldn't hangout with that person much. I hope I helped:)
Like the person above dicho - don't call your friend a "jerk". It'll just start the conversation off badly.
Maybe tu could just tell her how tu feel por how she's been acting. Don't be too straightforward. Be calm. Try not to make her get offended por tu telling why tu think she's being mean to whoever she's being a jerk to. This probably didn't help. :\
I agree with the anterior two, do not call him a jerk. tu could ask if everything is ok? Give some examples of what he's done and maybe mention it's not like them. That way it opens communication. There's a small chance that something is going on with him that tu don't know about. He may be taking it out on tu without knowing about it. But even if that's not the case, it will let him know in a nice way that tu don't like the way tu are being treated. Communication is the key to get to the truth. Good luck,