We randomly assigned 181 patients with obesity , moderate-to-severe obstructive sleep apnea , and serum levels of C-reactive protein ( CRP ) greater than 1.0 mg per liter to receive treatment with continuous positive airway pressure ( CPAP ) , a weight-loss intervention , or CPAP plus a weight-loss intervention for 24 weeks .