let's notice that, all those lines around the circle are tangent lines meeting outside the circle, and therefore twin lines, namely the pair that meets have the same length.
Check the picture below.
therefore the perimeter will just be
98+98+22+22+27+27+22+22 = 338.