A group of scientists began studying a river and found that it was 33 kilometers long. To be thorough, they decided to also study a connected tributary, which added 19 kilometers to the total length of waterway they needed to investigate. However, they later realized that a 30-kilometer portion of the river was inaccessible and couldn't be studied. How many kilometers of the river were they able to study?