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