A circle with center A and radius three inches is tangent at to a circle with center B, as shown. If point B is on the small circle, what is the total perimeter of the shaded region? Express your answer in terms of pi.