If a statement is made that the product of a number \( x \) and 3 is equal to 21, and another statement says that the same number \( x \) increased by 5 equals 12, determine the value of \( x \). Let's think step by step and output the final answer within \boxed{}.
user