A rectangle's length and width are in a ratio of 4:1. The area is 324 square centimeters. What are the length and width?