Let x equal the length of a side of the larger square.
Let y equal the length of a side of the smaller square.
x2 + y2 = 65
x2 - y2 = 63
Adding these equations together: 2x2 = 128 ---> x2 = 64
The length of the larger square is 8.
Substituting: x2 + y2 = 65 ---> 82 + y2 = 65 ---> y2 = 1
The length of the smaller square is 1.
Find the perimeter of each square and add these lengths together.