Finding the dimensions from given information