The sum of three palm tree heights range from 32 to 42 feet. The height of two of the trees are 8 feet and 16 feet. If the height of the third tree is x feet, write and solve a compound inequality to show the possible heights of the third tree.