Question: Retrieving index of a variable

Hi how can i retrieve the 1 in x[1] in a maple program or 2 in y[2]?
Please Wait...