How is this possible 😫

So I had sex maybe a month in a half ago.. had my period the next month I suppose was a period.. and I missed my period this month by 4 days haven’t had sex and I took a test and it’s positive.. wtf is going on and how is this possible 😫😫