Finding the length of sides of shapes