Kyle is a world class tennis player and goes to practice with some bags of tennis balls. Kyle has five bags containing a total of 50 tennis balls. The first and second bags contain a total of 21 tennis balls, the second and third bags contain 20 tennis balls, and the third and fourth contain 21 tennis balls and the fourth and fifth contain 27 tennis balls. What is the total number of tennis balls kyle has in the first and fifth bags?