With that problem? The line x = 5 makes things much easier.
Find the coordinates of the vertexes. Make the line x = 5 "the base" and it should be simple enough to find the height.
Generalizing this just a little bit. If you did not have a line that was parallel to the coordinate axes. Find the vertex. Make a rectangle with sides parallel to the coordinate axes, with the vertexes on the rectangle. There are 3 right triangles "in the box" that are not the triangle you are looking for. Calculate the area of the box, and subtract the area of these 3 right triangles.