Refer to the attached image. Since one vertex is the origin and the other two lay on the coordinate axes, the triangle is a right triangle. This means that, if we consider AB to the be base, AC is his height, and vice versa.
Anyway, it means that the area is given by
![A = \cfrac{\overline{AB}*\overline{AC}}{2}](https://img.qammunity.org/2019/formulas/mathematics/middle-school/42r8u3qwpxaxbzn627lc0u91v8gn61t2xa.png)
Since AB is a horizontal segment and AC is a vertical segment, their length is given by the absolute difference of the non-constant coordinate: points A and B share the same x coordinate, so we subtract the y coordinates:
![\overline{AB} = |2-0| = |2| = 2](https://img.qammunity.org/2019/formulas/mathematics/middle-school/swmc8mwc4zlvzecxvt7h5828vigovhl2bo.png)
The opposite goes for AC: points A and C share the same y coordinate, so we subtract the x coordinates:
![\overline{AC} = |4-0| = |4| = 4](https://img.qammunity.org/2019/formulas/mathematics/middle-school/zgydn4gme82bu1k19op7om5x0yg4aegt7o.png)
So, the area is
![A = \cfrac{2* 4}{2} = 4](https://img.qammunity.org/2019/formulas/mathematics/middle-school/7mpoin926pe52yn6q26b87z634389o1rql.png)