Answer:
14, 4
Step-by-step explanation:
Let's say the square side lengths are x and y. Then x-y=10 and x+y=18. Solve by solving for one variable then substituting into the other equation
x+y=18 so x=18-y
Substitute:
18-y-y=10
18-2y=10
18-18-2y=10-18
-2y=-8
y=4
Substitute y=4 back into the other equation.
x+y=18
x+4=18
x=18-4
x=14