The slope of AB is 2. Segmet AB is perpendicular to segment BC, and the slope of the perpendicular line (segment AB) is the negative reciprocal of the slope of the original or reference line (segment BC). The negative reciprocal of -1/2 is 2. Hope this helps.
The area of a square is its side length squared. So the side length of the square squared is 42, so the side length of the square is sqrt(42). The perimeter of the square is 4 times the side length, or 4sqrt(42), which is approximately 25.92.