64 and 81.
64 from ratio of side of square to square root of number of squares on the border.
>5:4 = 10:x
4/5 = x/10
x = 8
> Then square 8
= 64
81 if you take each as a perfect square;
> Square root of squares on border is one less than side of square grid
5
2 for grid
(5-1)
2 = 4
2 = 16 for number of squares on border.
> Therefore for unknown value 10
2 for grid
(10-1)
2 = 9
2 = 81 squares on border.
Maybe.
Both answers are related since you are squaring your values of 8 and 9 in each case.
What topic is this by the way?
EDIT: 32 may work as well.
Since you double side of square from 5 to 10, double the number of squares on border. 16 x 2 = 32.
Am I making any sense at all?