If the mean of the following data is 20.2, find the value of p.
Variable(xi)1015202530Frequency(fi)68p106
Mean = 10×6+15×8+20×p+25×10+30×66+8+p+10+6
⇒20.2=60+120+20p+250+180(30+p)
⇒20.230+p=610+20p
⇒606+20.2p=610+20p
⇒20.2p−20p=610−606
⇒0.2p=4
⇒p=40.2
⇒p=402
⇒p=20
Hence, the value of p is 20.