y = x2 - 12x
Interchange x and y
x = y2 - 12y => y2 - 12y - x = 0
Quadratic formula
y = [12 - sqrt(144 -4x)]/2 = 6 - sqrt(36-x)
I took the minus sign because when I graphed the answer it was obvious that the + sign didn't work.
Remember the graphs of f and its inverse are mirror images about the line y = x.