Worried

So i went to the dr early last week, and they told me they couldn’t tell if i was pregnant or not. i went home, took an at home test, and it had a line. i took two now the next morning, and they both had lines. so, i went to the hospital to have my levels checked. they were a 20.. this was on wednesday. they told me i was most likely having a miscarriage or a ectopic pregnancy; and needed to return in 48 hours and have my levels checked again. i went back on friday, and my levels were a 41! has anyone else ever dealt with this and successfully carried?