Before calculate the sum itself let's find the ck and the distance Δxk, we'll use the partition P = {{0,2}, {2,5}, {5,7}}, the problem says that the ck is the right endpoints of the partition, then

Now we have that we can write our Riemann sum

We can see, geometrically what we've done
We calculated the sum of the areas of the three green rectangles, if we do more partitions and some sums we will find that the sum will be the area under the graphic.