Note that a squared pyramid has a square base & 4 equal triangles. To find the lateral the lateral area you calculate the area of the 4 equal triangles and to find the surface area (total Area) you add the area of the base:
Area of each triangle = side (5) x slant (9) and you divide by 2
==>Aera of 1 triangle = (9x5)/2 = 45/2 & for the 4 triangles