Sofas and ladders round corners

Two corridors of widths a and b intersect at right angles.

Q: What is the longest ladder (line segment) you can take round the corner?

Q: What is the largest (wrt area) rectangular sofa you can take round the corner?

Q: ??? What about a non-rectangular sofa? What if it must be convex?

Spoiler