Help i dont understand Pls help :(

Answer:
x = 1?
Step-by-step explanation:
I think functions are basically just variables but extra so they both act the same. I'm not 100% sure but I Think
if f(x) = -5x + 1 when f(x) = 6,
replace f(x) with 6 so,
6 = 5x + 1
1 - 6 = 5x + 1 - 1
(subtract one on both sides to isolate the variable)
5 = 5x
5/5 = 5x/5
(to Actually isolate the variable lol
1 = x or x = 1
I believe is the answer? please comment if I'm wrong
*I WAS TOLD MY THOUGHT PROCESS IS WRONG ANYONE WHO SEES THIS PLEASE DISREGARD