Since William must have the same number of rows as columns, let the number of row be:
x = # of rows of cookies, then
x - # of columns of cookies, and each cookie occupies 1 sq. in. for each cookie
the total number of cookies is x*x or x2, so:
x2 = 121
x = 11 (this is the number of cookies in each row and column)