The grid below contains the 16 points whose x- and y-coordinates are in the set {0,1,2,3}:
A square with all four of its vertices among these 16 points has area A. What is the sum of all possible values of A?
I can't put the grid in but it's a 4x4 dot grid :)