If the average of 5,6,7 and X is 10. What is the value of 'X'?

A ) 12

B ) 22 ✅

C ) 32

D ) 42