So we have a warm up which turned into hw. It was find the pattern in the triangles and now we have to do the sides. It's a function thing. Basically,

n | # of sides
1 = 3
2 = 9
3 = 18
4 = 30
5 = 45

PLEASE HELP, i dont understand it at all