Solve the following math problem step by step. The last line of your response should be of the form Answer: \boxed{$Answer} where $Answer is the answer to the problem.

<image>In $\triangle JLP$, $m \angle JMP=3 x-6$, $JK=3y-2$, and $LK=5y-8$. If $\overline{JM}$ is an altitude of $\triangle JLP$, find $x$.
