A couple pieces of advice.
First, don't refer to girls and women as females when using English. While accurate, it is currently a word tainted in that context by its use among incels and assholes, so it makes it seem like you're one of those.
Second, at 19, sudden arousal from visual stimulation is fairly common. In other words, it's normal but annoying. It even happen when you're 49, though not as often lol
But the way you control yourself is the same way you control anything. You simply choose not to act on it, and wait until the problem goes away. For most guys, the erection will go away in a minute or two unless you're spending that time thinking about things that keep you erect.
Trust me, you aren't getting laid often enough just by being around girls/women to merit thinking about it the entire time. So just focus on your breathing, pay extra attention to what people are saying, and wait it out. It will go away eventually for damn near everyone. It has to because our bodies aren't designed to keep an erection we aren't using. Now, if there's enough friction in your pants, it may take longer than otherwise, but it'll go away eventually.