In a video game, Shar has to build a pen shaped like a right triangle for her animals. If she needs 9 feet of fence for the shortest side and 15 feet of fence for the longest side, how many feet of fencing is needed for the entire animal pen?
12 feet
16 feet
36 feet
38 feet