Problem:
I am given the vectors $\mathbf{a}\in\mathbb{R}^m$ and $\mathbf{b}\in\mathbb{R}^n$ with $m > n$ and an unknown $c\in\mathbb{R}$.
I want to find a combination of values, in any order, from vector $\mathbf{a}$ to form a new vector $\mathbf{a}_{\text{new}}$ with dimension $n$ and a value for $c$ such that the L1-norm $|\mathbf{a}_{\text{new}} - \mathbf{b} + c\mathbf{1}|_1$ is minimized. $\mathbf{1}$ is a vector of ones of dimension $n$.
Example:
Given $\mathbf{a}=[0,1,2,8,3]$ and $\mathbf{b}=[2,7]$, the solution would be $\mathbf{a}_{\text{new}}=[3,8]$ and $c=-1$ since $|[3,8]-[2,7]-[1,1]|_1=0$.
Question:
How can I solve this (numerically)? I understand that the solution is not necessarily unique.