```if-not:julia,racket
Write a function that returns the total surface area and volume of a box as an array: `[area, volume]`
```
```if:julia
Write a function that returns the total surface area and volume of a box as a tuple: `(area, volume)`
```
```if:racket
Write a function that returns the total surface area and volume of a box as a list: `'(area, volume)`
```

Source: codewars | Difficulty: EASY
Tags: Geometry

Fundamentals

Starter code: def get_size(w,h,d):
	

Solutions:
def get_size(w, h, d):
	area = 2 * (w * h + h * d + w * d)
	volume = w * h * d
	return [area, volume]


def get_size(w, h, l):
	return [2 * (w * l + h * l + h * w), w * h * l]


def get_size(w, h, d):
	return [2 * (w * d + h * d + h * w), w * h * d]


get_size = lambda w, h, d: [w * h * 2 + w * d * 2 + h * d * 2, w * h * d]


def get_size(w, h, d):
	ans = []
	surface = 2 * (w * h + d * h + w * d)
	volume = w * h * d
	ans.append(surface)
	ans.append(volume)
	return ans


def get_size(w, h, d):
	sa = 2 * (w * d + h * d + w * h)
	vol = w * h * d
	return [sa, vol]


def get_size(w, h, d):
	L = []
	if w == h == d:
		SA = 6 * w ** 2
		V = w ** 3
		L.append(SA)
		L.append(V)
	else:
		SA = 2 * (w * h + w * d + h * d)
		V = w * h * d
		L.append(SA)
		L.append(V)
	return L


def get_size(w, h, d):
	volume = w * h * d
	total_surface_area = 2 * (w * h + h * d + w * d)
	return [total_surface_area, volume]


from typing import List

def get_size(w: int, h: int, d: int) -> List[int]:
	return [2 * w * h + 2 * w * d + 2 * d * h, w * h * d]


def get_size(w, h, d):
	area = w * h * d
	surface_area = 2 * w * h + 2 * h * d + 2 * w * d
	return [surface_area, area]


def get_size(w, h, d):
	(A, S) = (0, 0)
	A = 2 * (h * w) + 2 * (h * d) + 2 * (w * d)
	S = w * h * d
	return list([A, S])


def get_size(w, h, d):
	surface = 2 * (w * h + h * d + d * w)
	area = w * h * d
	return [surface, area]


def get_size(w, h, d):
	s = []
	area = 2 * (w * h + h * d + w * d)
	sa = w * d * h
	s.append(area)
	s.append(sa)
	return s


def get_size(w, h, d):
	volumn = w * h * d
	area = 2 * (w * h + h * d + d * w)
	return [area, volumn]


def get_size(w, h, d):
	x = w * h * d
	y = 2 * (w * h + w * d + h * d)
	return [y, x]


def get_size(width, length, height):
	surface_area = 2 * (width * height + width * length + height * length)
	volume = length * width * height
	answer = []
	answer.append(surface_area)
	answer.append(volume)
	return answer


def get_size(w, h, d):
	listed = []
	area = 2 * (w * h) + 2 * (h * d) + 2 * (w * d)
	volume = w * h * d
	listed.append(area)
	listed.append(volume)
	return listed


def get_size(w, h, d):
	l = []
	a = 2 * (w * h) + 2 * (h * d) + 2 * (w * d)
	v = w * h * d
	l.append(a)
	l.append(v)
	return l


def get_size(w, h, d):
	area_vol = []
	area_vol.append(2 * (w * h + h * d + w * d))
	area_vol.append(w * h * d)
	return area_vol


def get_size(w, h, d):
	result = [0] * 2
	result[0] = w * h * 2 + w * d * 2 + d * h * 2
	result[1] = w * h * d
	return result


def get_size(w, h, d):
	total_area = 2 * (h * d) + 2 * (w * h) + 2 * (d * w)
	volume = w * d * h
	x = [total_area, volume]
	return x


def get_size(w, h, d):
	volume = w * h * d
	area = 2 * (h * w) + 2 * (h * d) + 2 * (w * d)
	box = []
	box.append(area)
	box.append(volume)
	return box


def get_size(w, h, d):
	a = 2 * d * w + 2 * d * h + 2 * h * w
	v = w * h * d
	return [a, v]


def get_size(w, h, d):
	area = (d * w + d * h + w * h) * 2
	value = w * h * d
	arr = [area, value]
	return arr


def get_size(w: int, h: int, d: int) -> list:
	return [2 * d * w + 2 * h * d + 2 * w * h] + [w * h * d]


def get_size(w, h, d):
	area = 2 * w * h + 2 * w * d + 2 * h * d
	volume = w * h * d
	v = list((area, volume))
	return v


def get_size(w, h, d):
	r = []
	a = 2 * w * h + 2 * h * d + 2 * w * d
	r.append(a)
	v = w * h * d
	r.append(v)
	return r


def get_size(w, h, d):
	x = []
	x.append(2 * w * h + 2 * w * d + 2 * d * h)
	x.append(w * h * d)
	return x


def get_size(w, h, d):
	w = int(w)
	h = int(h)
	d = int(d)
	surface_area = 2 * w * h + 2 * h * d + 2 * d * w
	volume = w * h * d
	return [surface_area, volume]


def get_size(w, h, d):
	S = 2 * w * d + 2 * w * h + 2 * d * h
	V = w * h * d
	return [S, V]


def get_size(w, h, l):
	a = 2 * l * w + 2 * l * h + 2 * w * h
	v = w * h * l
	return [a, v]


def get_size(w, h, d):
	area = 2 * (w * h) + 2 * (w * d) + 2 * (h * d)
	volume = w * h * d
	empty = []
	empty.append(area)
	empty.append(volume)
	return empty


def get_size(w, h, d):
	surface_area = []
	surface_area.append(2 * (d * w + d * h + w * h))
	surface_area.append(h * d * w)
	return surface_area


def get_size(w, h, d):
	area = 2 * (w * h + w * d + h * d)
	volumen = w * h * d
	result = [area, volumen]
	return result


def get_size(w, h, d):
	s = 2 * (w * h + w * d + h * d)
	r = w * h * d
	return [s, r]


def get_size(l, b, h):
	return [2 * (l * b + b * h + l * h), l * b * h]


def get_size(w, h, d):
	lösung = [2 * w * h + 2 * w * d + 2 * h * d, w * h * d]
	return lösung


def get_size(w, h, d):
	volume = h * w * d
	area = 2 * (w * h) + 2 * (w * d) + 2 * (h * d)
	res = []
	res.append(area)
	res.append(volume)
	return res
print(get_size(10, 10, 10))


def get_size(w, h, d):
	s_o = []
	s = w * h * 2 + h * d * 2 + d * w * 2
	o = w * h * d
	s_o.append(s)
	s_o.append(o)
	return s_o


def get_size(w, h, d):
	array = []
	area = w * h * 2 + w * d * 2 + h * d * 2
	array.append(area)
	volume = w * h * d
	array.append(volume)
	return array


def get_size(w, h, d):
	result = []
	vol = w * h * d
	area = (w * d + h * d + h * w) * 2
	result.append(area)
	result.append(vol)
	return result


def get_size(w, h, l):
	surface_area = 2 * (h * w) + 2 * (h * l) + 2 * (w * l)
	volume = h * w * l
	return [surface_area, volume]


def get_size(w, h, d):
	vol = w * h * d
	sur = 2 * (w * h + w * d + h * d)
	return [sur, vol]


def get_size(w, h, d):
	vol = w * h * d
	surface = 2 * w * h + 2 * w * d + 2 * h * d
	return [surface, vol]


def get_surface_area(width, height, depth):
	return 2 * depth * width + 2 * depth * height + 2 * height * width

def get_volume(width, height, depth):
	return width * height * depth

def get_size(width, height, depth):
	return [get_surface_area(width, height, depth), get_volume(width, height, depth)]


def get_size(w, h, d):
	my_list = []
	area = w * h * 2 + h * d * 2 + w * d * 2
	volume = w * h * d
	my_list.append(area)
	my_list.append(volume)
	return my_list


def get_size(w, h, d):
	surface = 2 * (w * h + w * d + d * h)
	volume = w * h * d
	return [surface, volume]


def get_size(w, h, d):
	SA = 2 * w * h + 2 * w * d + 2 * h * d
	V = h * w * d
	return [SA, V]


def get_size(w, h, d):
	area = 2 * (w * h + h * d + w * d)
	vol = w * h * d
	a = [area, vol]
	return a


def get_size(w, h, d):
	l = []
	l.append(2 * (w * h + h * d + d * w))
	l.append(w * h * d)
	return l