Solution:
Mean of $1, 7, 5, 3, 4$ and $4 = {\frac{(1 + 7 + 5 + 3 + 4 + 4)} {6}} = {\frac{24}{6}} = 4$
Therefore, $m = 4$
It is given that
The mean of $3, 2, 4, 2, 3, 3$ and $p = m -1 = 4 – 1 = 3$
Therefore, $17 + p = 3 \times n \dots$ ,where $n = 7$
$17 + p = 21$
$p = 4$
Arrange the terms in ascending order:
$2, 2, 3, 3, 3, 3, 4, 4$
Mean $= 4^{th}$ term $= 3$
As a result, $q = 3$