Is my calculation correct in finding the expressions for the perimeters of the blue and red triangles, as well as their difference, and also the values of the perimeters when x=3?