You can put this solution on YOUR website! A triangle has only two dimensions.
A dog is three dimensional.
you can't put a dog in a triangle. You can put a drawing or picture of a dog in a triangle.
Do you mean the base of the dog house is triangular?
Then it is 18 meters around the doghouse
3*6 or 6+6+6=18