A group of students stood in three rows. The 1st row had 5x students. The 2nd row had 2x more students than the 1st row. The 3rd row had 2 less students than the 2nd row.
- Find the number of students in the 3rd row in terms of x. Give your answer in the simplest form.
- There were 12 students in the 3rd row. Find the value of x.