Rcc: unequal number of rows in 'X' and 'Y'


I have no experience with this program, and I would appreciate if someone could help me here.
I’m trying to run the following command:

result.rcca ← rcc(Y, X, ncomp = 2, method = ‘shrinkage’)
Error: unequal number of rows in ‘X’ and ‘Y’.

My X and Y indeed have different number of rows. Is there any way I can resolve this without deleting some rows?

Thank you in advance for all your help! I really appreciate it!