Megan went apple picking and brought home a large bag of apples. She gave away the same number of apples each day. The total numbers of apples in the bag for Days 2, 3, 4, and 5 were 34, 28, 22, and 16, respectively. What was the initial number of apples in the bag? Assume that the relationship between the two quantities is linear.