to find length and area