There's actually no such thing as "the formula for a triangle".
There are many details of a triangle that you might be asked
to calculate. You might be asked to find the perimeter, the area,
the angles, or the length of one or more sides. Your question
doesn't specify which of these things we're expected to find.