when a number n is decreased by 12 and then the result is multiplied by 3, the produt is equal to 21. write an equation and solve it to find the value of n.