I know that if you have a bump function $B$
$$B(x) = \begin{cases} e^\frac{-1}{x}, & x>0 \\[2ex] 0, & x\le0 \end{cases}$$
and some other arbitrary smooth function $f$ (i.e. $f(x)=x^2$) and create a secondary function to bind both $B$ and $f$ to make $f=B$ for some interval and $f\neq B$ anywhere outside of that interval (as done in the comments here).
However, if you have two functions, $f$ and $g$ (say $g(x)=x$), is there a way to use a bump function to smoothly "connect" these two functions (you probably need to make sure there is some sort of intersection between $f$ and $g$ anyways, $g(x)=x$ may be a poor example).
The behavior I am looking for is that, when $B\le0$, $B=f$ and when $B\ge1$, $B=g$, and across the interval $(0,1)$ $B$ is a $C^\infty$ function where $B\neq f$ and $B\neq g$. I'm sure there is some sort of restriction between what $f$ and $g$ can be, which may not be properly represented in this example.