Basically, about 6 years ago, I got into freediving while on vacation. Once I got back to the real world, I got obsessed with training to hold my breath for longer. So I started doing breathing exercises just after I woke up and just before I went to bed. Each session took 15-25 min and was done lying down to minimize the danger from passing out. I used an iOS app called Apnea Trainer (no affiliation besides satisfied user), but there should be a ton of apps available on both app stores if you search ‘apnea’. You can also read a ton of information (including safety tips) by googling ‘CO2 tables’ and/or ‘O2 tables’.
After dropping the 25lbs in my first month of training, I started looking into why that might be and, from what I’ve found, training your body for longer breath holds can increase resting metabolic rate.