Think of f as "doing something" to what's in the bracket.
In this case f means "take the square root and subtract 2".
So look at what you have:
In the brackets defining the f there's .
So do the square root of all that and subtract 2. Then when you done that, multiply the whole thing by 3 and then add 5.