Answer:
step 1: Horizontally shrink by 2 => f(x*1/2) = x-1
step 2: Shift up by 1/2 => f(x) = x-1/2
Explanation:
Assuming when you say 1/2*f(x) aka 0.5 * (2x-1) you first turn 2x into just x by horizontally shrinking it by 2.
Then you have to turn -1 into -1/2, for that you just add 1/2 aka shifting up 1/2.
If you ever forget the transformations, or how to use them here's a little cheat sheet :)