A parking lot has twice as many cars as trucks. The total number of cars and trucks in the parking lot is 24. How many cars and how many trucks are in the lot?