Note: As printed, two rules fit the examples: n(n + 1) gives 30, and 8n minus 12 gives 28, which is also an option. The answer shown follows SSC's answer key.
The rule is n×(n+1):3×4=12,4×5=20, so 5×6=30.
Analogy: about 4 questions a paper · 7 of 200 marks (4%)
Square and Cube Rules: about 1 mark a paper (under 1%)