the length around the edge of a square is the perimeter
for a square, the perimeter is the sum of all 4 side length
P= s+s+s+s = 4s
since 24 in of ribbon should go completely around the edge of the frame, it is our perimeter, thus
24 in = 4s
solve for s