Solving squares