A rectangular solar panel has a length that is 12 inches shorter than 3 times its width. If the perimeter of the panel is 160 ​inches, what are the dimensions of the​ panel?