How do you solve the equation \(x+2=4\)?