the table shows pattern p and patterns q complete the table

ANSWER
P=8,Q=16
EXPLANATION
We can see from the table that both pattern P and Q have an initial value of 24.
Pattern P is reducing by a constant difference of 4.
The next value for pattern P is
12-4=8.
Also pattern Q is reducing by a constant value of 2.
The next value for pattern Q is,
18-2=16