How to find Area and Perimeter