A trapezoid has an area of 144 square meters and an altitude of 4 meters. Its two bases have a ratio of 4:5. What is the perimeter of the trapezoid?