How do you write someone is older than 27 by less than 38 as an inequality?

27 < x < 38

x is the age in years.