The solution is 10 and 6. 10^2 - 6^2 = 64 which is a perfect cube. 10^3 - 6^3 = 784 which is a perfect square. :)