The surface area of a square card table can be represented by x^2-50x+625.

A: write an expression that represents the side length of the table

B: write an expression for the perimeter of the table