A group of college students are going to a lake house for the weekend and plan on renting small cars and large cars to make the trip. Each small car can hold 5 people and each large car can hold 8 people. A total of 5 cars were rented which can hold 34 people altogether. Determine the number of small cars rented and the number of large cars rented.