Sides on rectangle A do not exist. Roots are +/- sqrt(11)i.
Sides on Rectangle B are 5.236 x 0.7639
Area = A, Perimeter = P
The points with impossible results are anywhere the A > 0.0625P^2
Squares reside on the line A = 0.0625P^2
Circles on the line A = P^2 / 2(pi)
Regular triangles on the line A = sqrt(3)/36 * P^2
and Regular hexagons on the line A = sqrt(3)/24 * P^2
Work is below
