Given the mean and most of the set data, please find the missing value of x in each set.
a) {3,5,6,8,9,2,1,0,5,x}; mean = 4
b) {6,7,2,9,4,x); mean = 5