Given X,Y,Z, now please follow the idea/method used in LDA/PCA to find the best solution to:
argmax over a,b (a^T)Zb
s.t. a^TXa = 1, (b^T)Yb=1