A student scores the following marks in 10 tests
3,7,x,7,12,9,10,4,2,5
If the mean mark is 6, calculate the value of x.