So for the part a) Let 0-6 stand for a score and 7-9 stand for a miss. This means 7 numbers that mean score and 3 numbers that mean miss, which gives it a 70% chance. Take 6 of the digits for each of the 5 simulations.
189741- 3 scores
586463- 5 scores
856648- 4 scores
770615- 4 scores
645468- 5 scores
Now for the part b. The expected number of free throws is the probability of one free throw it means 70% times the number of free throws. So what we do is 6 * 0.7 = 4.2 so you expect about 4 free throws out of the 6. As in the simulations above, the number of scores were all close to 4.