Tom and Jerry started with identical rectangular sheets of paper. Each of them cut his sheet in half. Tom obtained two rectangles, each with a perimeter of $40$cm while Jerry obtained two rectangles, each with a perimeter of $50$cm. What was the perimeter of Tom's original sheet of paper?