The area of the triangle is generally 0.5 * a * h. Let's assume that "a" will be episode | AB | so you count the length of the section about the ends in points (5,3) and (10,4)
AB= sqr (x2-x1)^2 + (y2-y1)^2
The length | AB | comes out = sqr26
now you count the height "h" which is the distance of point C from the straight line passing through points A and B. So first you calculate the equation of the line passing through A and B
y-y1 = (y2-y1) / (x2-x1) * (x-x1)
So we have an equation of a simple figure
Now you find the distance of point C (2,8) from this line
h = Ax0 + By0 + C / sqr (A^2 + B^2)
Above you have the formula for the distance of the point C = (x0; y0) from the line Ax + By + C = 0.
From this formula the distance of this point is 5 sqr 2.
So you have all the data:
a = sqr26
h = 5sqr2
So the area is ~ 18 square units
And that's all