To figure this out, you'd use the a^2+b^2=c^2 formula. Since you have your two sides, you want to find the value for c. So, you'd plug in two for a and b.
2^2+2^2=c^2
4+4=c^2
Add up the two fours to get 8 and square root it, and you get 2.828427124...