Take Eq. (4) as a staring point. Rearrange to estimate A in a LS sense. Use that the rank of the problem for solving for A (r1,w1), using estimates of B (r2,w2) and C (r3,w3) limits the number of orthogonal components that can be estimated.