Matrices to solve a vector combination problem