How do you solve the equation #3x+16=31#?