The first part its the area of the square, cause we know is a square then all the sides are 10 in.
By knowing that, we only substract the 10in to the 16 in know the height of the triangle (6 in) and substract the 6 in to the 10 in to know the base of the triangle (4 in).