Solving Perimeter Problems