We know that the library is located in te point (4,-1) and the grocery store in the point (-8,6). The distance between points is given by
In our case, let P be (4,-1) and Q be (-8,6); then
So the distance between the point P and Q is 13.89; but we have to remember that each unit represents two blocks then we have to multiply our result by 2.
The distance between the grocery store to the library is 27.78 blocks or, rounding up, 28 blocks.