Calculating the sample space for four coins with numbers and images