How long did y’all breastfeed ?

How long did y’all breastfeed your babies ? I exclusively breast fed my baby for 5 weeks and had to start supplementing because she wasn’t gaining weight. Well I figured out my supply was really low. I’ve tried everything to make my supply come in better and nothing has worked. I still can pump about 3-4 oz a day; which I mix with formula. My question is, is it even worth pumping at this point for such a small amount?? I’m clueless when it comes to breastfeeding and all things related to it so any suggestions are welcome. My goal was to breastfeed to for at least 6 months so I’m really beating myself up about not being able to