Since ##f## is uniformly continuous, there exists a constant ##\delta > 0## such that, for any ##x,y \in \mathbb{R}## with ##|x - y| < \delta##, we have
$$|f(x) - f(y)| < 1.$$
Take any ##x \in \mathbb{R}##. Then, for any ##y \in \mathbb{R}## with ##|y| \le |x| + \delta##, we have
$$|f(x) - f(y)| < 1.$$
In particular, if we take ##y = 0##, we get
$$|f(x)| \le 1 + |f(0)|.$$
Therefore, we can take ##A = |f(0)|## and ##B = 1##. This shows that, for some positive constants ##A## and ##B##, we have
$$|f(x)| \le A + B|x|$$
for all ##x \in \mathbb{R}##.
Note that the choice of ##A## and ##B## is not unique: any constants ##A'## and ##B'## such that ##A' \ge A## and ##B' \ge B## will also work. For example, we can take ##A' = \max {|f(x)| : x \in \mathbb{R}}## and ##B' = \delta^{-1}##, where ##\delta## is the constant from the uniform continuity of ##f##.