$\large l*b = 216$, if both $l$ and $b$ are greater than $\sqrt{216}$ then, product will be larger than $216$. So, we need to check for first factor of $216$ till $\lceil \sqrt{216} \rceil = 15$ and if $x$ is a factor of $216$, then $\frac{216}{x}$ will be other factor.
$l*b = 216 = 2^3*3^3$ (this will help in finding factors)
Pairs of $(l,b)$ are $(1,2^3*3^3) = (1,216)$ and $(2,2^23^3) = (2,108)$. Similarly other pairs are : $(3, 72), (4,54), (6,36), (8,27), (9,24), (12, 18)$
Perimeter of a rectangle $= 2(l+b)$
So, Perimeter of all possible rectangles $\color{navy}{= \sum 2(l+b) = 2\sum l + 2 \sum b = 2( 1 + 2 + 3 + 4 + 6 + 8 + 9 + 12 + 18
+ 24 + 27 + 36 + 54 + 72 + 108 + 216) = 1200}$
It is equivalent to finding 2 times sum of all divisors of $216$
PS:) Here $l = 12, b = 18$ and $l = 18, b = 12$ are considered as one rectangle, if considered to be different then it would be $\color{blue}{2400}$