Kansas will receive nearly $27.6 million from a legal settlement with the company that manages prescription costs for its Medicaid program, after an investigation into whether the company had overcharged the state, Attorney General Derek Schmidt announced Monday.