Confused.

I took two at home pregnancy tests. Both positive. A few weeks ago. 2 days ago I started cramping or like super bad stomach pains. Today I wake up to my period that’s like brown red and a bunch of clots. I’m not sure what’s going on. I did go to the er bc the pain got so bad. All they did was give me a shot and shove 10 pills down my throat.