Sam is solving a puzzle where he needs to calculate the value of the expression 3(x - 2) + 4. What is the value of this expression when x is equal to 7?