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