Pregnancy test

Tia

How long after having sex do you take a pregnancy test, and if it’s positive what do you do from there. I’m 15 and worried x