Final answer:
To find the number of cars and motorcycles in the parking lot, we can set up a system of equations that represent the total number of wheels and vehicles. Solving these equations simultaneously, we find that there are 19 cars and 11 motorcycles.
Step-by-step explanation:
To solve this problem, we need to set up a system of equations. Let x represent the number of cars and y represent the number of motorcycles. Since cars have 4 wheels and motorcycles have 2 wheels, we can set up the equation 4x + 2y = 98 to represent the total number of wheels. We can also set up the equation x + y = 30 to represent the total number of vehicles. Solving these two equations simultaneously will give us the number of cars and motorcycles.
Multiplying the second equation by 2, we get 2x + 2y = 60. Subtracting this equation from the first equation, we eliminate the y variable and get 2x = 38. Dividing both sides by 2, we find that x = 19. Substituting this value into the second equation, we can solve for y:
y = 30 - x = 30 - 19 = 11.
Therefore, there are 19 cars and 11 motorcycles in the parking lot.