A rectangle with a perimeter of 78 millimeters has a length and width in a ratio of 9:4. What are the length and width?