A rectangular prism has a volume of 144 and a surface area of 192. If the shortest edge is 3, what is the length of the longest diagonal through the prism?