How to calculate area and perimeter | ScratchStats