Let us consider the language 2 first.Given that A is a regular set and the string denoted by 'y' belongs to the set A , so we know that power which we take as concatenation of the string itself "n times " .
We are taking power of a language as concatenation "n" times with itself because :
Given a set V define
V0 = {ε} (the language consisting only of the empty string),
V1 = V
and define recursively the set
Vi+1 = { wv : w ∈ Vi and v ∈ V } for each i>0.
So Vi+1 is nothing but set comprising of concatenation of w and v where w belongs to Vi which I am referring as Vi and v belongs to V.
Reference : Definition and Notation Part of https://en.wikipedia.org/wiki/Kleene_star
Now the set V in this question is referred to the regular set A. We know that concatenation of regular language (or) regular set results in regular language only(by closure properties of regular language) .
So X is generated by Y's concatenation only and Y is a regular set (or) language.So X is also going to be regular set.
Now coming to language 1.
Now it says the opposite i.e. Y belongs to A only but now the relation between Y and X is : Y = Xn and given the clause there exist associated with the value of n , so we can assign any value of n which is >= 0 .So if n = 1 , then Y = X and hence X is obviously regular set .
Similarly on setting n = 2 , we get Y = X2 meaning Y can be partitioned on exactly 2 halves and hence we can say X is half(Y).And we know given a language or a set L is regular , then half(L) is also regular.
Hence the 1st language is also regular .
Hence A) should be the correct option.