1:whatever you do don't call them a jerk(that would just make them get defensive) 2:stay as calm as you can 3:make sure you and your friend are alone when you tell them 4:give them a example.like you say" yesterday at lunch you sinabi I was stupid and that hurt my feelings.It would be cool of you to not say mean things;can you 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 sinabi - don't call your friend a "jerk". It'll just start the conversation off badly.
Maybe you could just tell her how you feel sa pamamagitan ng how she's been acting. Don't be too straightforward. Be calm. Try not to make her get offended sa pamamagitan ng you telling why you think she's being mean to whoever she's being a jerk to. This probably didn't help. :\
I agree with the nakaraan two, do not call him a jerk. You 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 you don't know about. He may be taking it out on you without knowing about it. But even if that's not the case, it will let him know in a nice way that you don't like the way you are being treated. Communication is the key to get to the truth. Good luck,