16+24+x+y+16+16 = 20016+24+xy+16 = 32, and the solution is X = 80y = 50.
∴P=0.4,q=0.25.
Complete the frequency distribution histogram as shown in the figure,
(2) According to the meaning of the question, the number of people whose online shopping amount is less than (1, 2) is 2424+ 16×5=3 (people), marked as: A, B, C. 。
The number of people whose online shopping amount is less than (4,5) is 1624+ 16×5=2 (people), which is recorded as: A, B. 。
Then the selection methods of randomly selecting two people from these five people are: (a, b), (a, c), (a, a), (a, b), (b, c), (b, a),
(b, b), (c, a), (c, b), (a, B)*** 10.
Remember that the events of two different groups of people are M, then M contains (a, a), (a, b), (b, a), (b, b), (c, a), (c, b) * *.
∴P(M)=6 10=35.