You need to remember that on a graph, the domain corresponds to x axis and the range corresponds to y axis.
Hence, you need to find on x axis the endpoints that indicate you the interval that represents the domian of function. Since the graph provided starts at `x = 2` and ends at `x = 5` , you may establish the domain as being the closed interval `[2,5].`
You need to look now up and down on vertical y axis to find if there exists some points that indicate the range. You should notice that the lowes point on the graph corresponds to y = -2 and the upper point corresponds to y = 2, hence, you may predict the range as being the closed interval `[-2,2].`
Hence, evaluating the domain and the range of the provided curve, yields `D = [2,5], R = [-2,2]. `