In tis question it is given that,
If x = y + 2 and y + 2 = 8, then x = 8.
Let's check out transitive property which states that
If

Then,

In this question,

SO we can say that the given expression follows transitive property of equality .
And the correct option is the first option .