Shoe sizes and foot length are related by the formula S = 3F - 24, where S represents the shoe size and F represents the length of the foot, in inches. Solve the formula for F.