Answer:
Name the boys and girls in room X as B1,B2,G1,G2, and those in room Y as B3,G3,G4. Write each outcome as (room, person).
(i) In room X any of 4 persons can be selected, and in room Y any of 3 persons.
S={(X,B1),(X,B2),(X,G1),(X,G2),(Y,B3),(Y,G3),(Y,G4)}
So n(S)=4+3=7.
(ii) The girls are G1,G2 in room X and G3,G4 in room Y.
E={(X,G1),(X,G2),(Y,G3),(Y,G4)}
F={(Y,B3),(Y,G3),(Y,G4)}
E∩F is the event "a girl from room Y is selected".
E∩F={(Y,G3),(Y,G4)}
Note: if each room is equally likely to be chosen, these 7 outcomes are not equally likely. Each person in room X has a smaller chance than each person in room Y, because room X has more people. So here P(E) is not simply n(S)n(E).