The rows of chairs in section A of an auditorium are arranged in a square with as many chairs in each row as the total number of rows. Section B is also arranged in a similar manner. If section A has 23 more chairs than section B, how many chairs are in section A?

It has to be 144 but why?