(I will ask this question in musical terms, but this seems to be related to projecting integer vectors onto each other, which I'm unfamiliar with. Perhaps I'm just looking for some existing notation that I'm not aware of, I'm not completely sure.)
I'm given a music interval, e.g. a minor 6th which I'll write as $[\text{m}6]$. Each interval can be uniquely expressed as a linear (integer) combination of fifths and octaves, e.g $[\text{m}6] = -4[5] + 3[8]$.
(Note that $[5]$ and $[8]$ are linearly independent: there is no (integer) linear combination of them that equals to zero, that is, the unison / perfect prime interval $[1]$.)
My question is: How can that integer $-4$ be expressed in terms of $[\text{m}6]$, $[5]$, and $[8]$?