結果 : how to calculate length and width of a rectangle