CHARLESTON, W.Va. — Walmart and CVS Pharmacy have settled with the state of West Virginia for a combined total of $147 million in a lawsuit over the companies' roles in contributing to the oversupply of prescription drugs that fueled the opioid epidemic in the country's most impacted state.