How to find the height and width of a square​