Which of the following describes the correct process for solving the equation 3x+6=21 and arrives at the correct solution?

ADivide both sides by 6 and then at 3 the solution is x=5

B562 both sides of the equation and then divide by 2 the solution is x=9

CSubtract 6 from both sides of the equation and then divide by 3 the solution is x=8

DSubtract 6 from both sides of the equation and then divide by 3 the solution is x=5