Step 1 :The table shows values for $f(x, y)$, with $x$ values down the side and $y$ values across the top.
Step 2 :For the first question, we need to find the value of $x$ such that $f(x, 5)=2$. This means we need to look at the column where $y=5$ and find the row where the value is 2.
Step 3 :For the second question, we need to find the value of $y$ such that $f(4, y)=-18$. This means we need to look at the row where $x=4$ and find the column where the value is -18.
Step 4 :For the first question, the value of $x$ for which $f(x, 5)=2$ is $x=4$.
Step 5 :For the second question, the value of $y$ for which $f(4, y)=-18$ is $y=2$.
Step 6 :So, the final answers are $x=\boxed{4}$ and $y=\boxed{2}$.