Ok the solution is related to the fact that the sides of the trapezoid are tangents to the circle. This means that if we divide each of the four sides of the trapezoid by the point where they touch the circle we have 4 pair of segment with the same size. What I mean is that:
Therefore the perimeter is given by: