Draw a rectangle 8 cm wide and 5 cm tall and cut it along a diagonal. You get two identical right triangles, so each has half the rectangle's area: 21×8×5=20 cm2. That is the formula in its simplest case: base 8, height 5, take half.
It still works when the triangle leans. Make a copy of any triangle, turn the copy half a turn, and fit it against the original along one side. Together they form a parallelogram with the same base and the same height, and a parallelogram's area is base times height, so one triangle is half of it. The height is the key measurement: the perpendicular distance from the base up to the top corner, like a person's height measured standing straight, not leaning.
So all triangles with the same base and the same height have the same area, however far their top corner slides sideways. For an obtuse triangle the top corner can even sit beyond the end of the base; then the height falls outside the triangle, and you extend the base line to meet it.
A slanted side is not a height. In a triangle with base 12 cm, two sides of 10 cm and height 8 cm, the area is 21×12×8=48 cm2; using the 10 cm side gives 60, too big. A slanted side is always longer than the height.
Think of it like this. Cut a sandwich from corner to corner and each piece is a triangle holding exactly half of it. That predicts the 21, and it shows why the base and the height of the whole sandwich, not the length of the cut edge, set each piece's size.
Core idea. A triangle's area is half its base times its perpendicular height, because every triangle is half a rectangle of the same base and height.