Okay, so seeing two graphs on one set of axis suggests a piece wise function. The sharp turn in the lower graph indicates that it is an absolute value function. Now, I can't see the markings on the graph so clearly, so there may be some errors. I assume the lowest point on the graph, that is, where the sharp turn is is (-1,1), and that the y-intercept is 2 and that the horizontal graph is in line with y=5 and that the dots are above x=-3. So here goes:
An absolute valued function always gives positive answers, so whenever the answer is going to become negative, it it flips the graph upward, which is why we see a sharp turn. We see the graph flips when x is at -1, which means if x gets any smaller, the value will be negative, so then the absolute value part of the function is |x+1|, when x=-1, it becomes zero, anyless than -1, it is negative and therefore the graph flips up making a sharp turn. but we're not done yet. The y-intercept is 2. The y-intercept occurs when x is zero. In this case, if x=0, we have y=|1|=1. So to correct this, we just shift the graph upward by 1 by adding a constant 1, so the absolute value part of the function is |x+1| + 1.
The other part of the graph is easy (provided I can see it correctly), the graph is a constant 5, so it's y=5. Now we put these 2 functions together and obtain: