The temperature in Miami, Florida Is 22 degrees warmer than three times the temperature in Bangor, Maine. The temperature in Miami is 82 degrees. Write an equation to determine the temperature in Bangor.
3x + 82 = 22
3x + 22 = 82
3x - 22 = 82
3x - 82 = 22