SCHEMA:
CREATE TABLE table_name_71 (goals_for INTEGER, played VARCHAR, position VARCHAR, losses VARCHAR)
User Question:
What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?


SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30