Jack is studying for his algebra exam and encounters a problem involving a linear function. The linear function is defined as:
$$y = 3x - 7$$
Jack wants to determine the value of $x$ when $y$ equals 2. Can you help him solve for the value of $x$?