AMC 10B 2018 Problem 4

A three-dimensional rectangular box with dimensions X, Y, and Z has faces whose surface areas are 24,24,48,48,72, and 72 square units. What is X+Y+Z ?

Answer Choices
A. 18
B. 22
C. 24
D. 30
E. 36