The ratio of the measures of the angles of a triangle is 3:2:1. Given that the shortest side of the triangle is 12 meters long, what is the number of meters in the longest side of the triangle?