A ribbon is cut in two parts in ratio of 2:7. If the length of the ribbon is 27 inches, what is the length of longer piece