Paul is sixteenth from the front of the row and adjacent to john, who is three places in front of Sam. Sam is adjacent to mark and five places in front of Adam, who has Paul at seventh place I front of him. Find the total number of people in the row if there are three people between John and mark and Mark is twenty third from the back.