Respuesta :

Blue triangle:  perimeter is 4x+2+7x+7+5x-4, or, after simplification, 
                                           16x + 5
Red triangle:  perim. is 2x-5+x+7+x+3 (and so on).