In a maths competition each correct answer gets three marks, but one mark is deducted for each incorrect answer.

Grace answers all 30 questions and scores 30 marks. How many questions did she get wrong?