Step 1 :Substitute x with 5: y = 5^2 - 7
Step 2 :Calculate the result: \(y = 25 - 7\)
Step 3 :\(\boxed{y = 18}\)