Let, the two unknown terms are x&y.
The mean is defined as μ=N∑xi
⇒5=51+3+8+x+y
⇒25=12+x+y
⇒x+y=13...(1)
And, the variance is defined as σ2=N∑(xi−μ)2=N∑xi2−μ2
⇒9.2=51+9+64+x2+y2−25
⇒34.2×5=74+x2+y2
⇒171=74+x2+y2
⇒97=x2+y2...(2)
Put the value of y from equation (1) and put in (2), to get
97=x2+(13−x)2
⇒97=x2+169−26x+x2
⇒2x2−26x+72=0
⇒x2−13x+36=0
⇒(x−4)(x−9)=0
⇒x=4 or x=9
And, y=9 or y=4 respectively.
Hence, the ratio of x:y is 4:9 or 9:4.