The diagram below shows the lengths given. Clearly the perpendicular height is the shortest of the lengths so must be $12$.
We then have two right-angled triangles. In both cases, the base can be found using Pythagoras' theorem, and then the area can be found from $\frac{1}{2}\text{base}\times\text{height.}$