When a number n is decreased by 12 and then the result is multiplied by 3, the product is equal to 21 . Write an equation and solve it to find the value of n .
The equation is , The value is .