Michelle is making throw pillows to decorate her couch. She is going to make two square pillows that are each 2 feet by 2 feet and three triangular pillows that are 1 foot on each side. She wants to use the same trim around each pillow. How many feet of trim will she need for all the pillows?