The sum of three lengths of a fence ranges from 25 to 30 inches. Two side lengths are 9 and 12 inches. If the length of the third side is x inches, write and solve a compound inequality to show the possible lengths of the third side.