The side-by-side squares are of course 25 and 9. The problem doesn’t state exactly how much overlapping is allowed, so many forms are possible. Presumably, every digit is involved in at least one of the two squares. At least one digit must be involved in only one square, otherwise the solution is trivial (i.e., every square would overlap itself).