The wire bent into a circle of radius r has resistance λ⋅πr for the semicircular arcs, and the straight wire of length 2r has resistance λ⋅2r. The three paths between A and B (two semicircular arcs of the circle and one straight wire through center) are in parallel.
RAB1=λπr2+λ⋅2r1+λ⋅3πr2
=λr1[π2+21+3π2]
=λr1(6π12+3π+4)=λr1⋅6π16+3π
RAB=λr(16+3π6π)=3π+166πλr