If we're strictly looking at the pattern of y, it follows an arithmetic sequence where each successive y term increases by 2. If we're looking at predicting the y value as a function of x, then we can calculate the rate of change( slope) and note that delta y = 2, and delta x =3, hence, y is 2/3 of whatever x value is entered.
Since the original statement mentions calculating for x OR y, we can use the sequential logic if we needed to find the next x or y term. Since the function is linear (has a constant rate of change), if you were asked to predict the next x value, for example, we can see that each x term increases by 3 from the previous term. You could either write it as delta x is equal to 3 or :
x(n) = x(n-1)+3 ## where n represents the term you're on and '+3' represents the change in x
For example, if you want to calculate x(6)--the sixth x term, it would be equal to:
x(6) = x(6-1)+3
x(6) = x(5) +3 --> x(5) = 15
x(6) = 15+3
x(6) = 18
We could do the exact same for y:
y(n) = y(n-1)+2 ## where n represents the term you're on and '+2' represents the change in y
y(6) = y(6-1) +2
y(6) = y(5) +2
y(6) = 10 + 2
y(6) = 12
Calculating the 6th term was pretty easy considering the sequence stopped on the 5th term (you could easily eye it), but imagine if someone asked for the 20th term; having a formula is pretty handy in either case.
Hope this helps!