Whitney goes to the store to buy metal trim to go around the outside edge of two square picture frames.

Each side of the smaller frame is 16 inches long.
Each side of the larger frame is 3 times as long as each side of the smaller frame.
What is the total length, in inches, of the metal trim needed to go around the outside edges of the picture frames?
____ inches