Let's denote:
- \( x \): the number of toy cars.
- \( y \): the number of toy trucks.
From the problem statement, we have the following information:
- Each toy car weighs 1 kg, and the empty container for toy cars weighs 10 kg. Thus, the total weight of the container with toy cars is \( 10 + x \) kg.
- Each toy truck weighs 5 kg, and the empty container for toy trucks weighs 2 kg. Thus, the total weight of the container with toy trucks is \( 2 + 5y \) kg.
- The problem states that both containers have the same weight and contain the same number of toys, which gives us the equations:
\[ 10 + x = 2 + 5y \quad \text{(1)} \] \[ x = y \quad \text{(2)} \]
Now, we can substitute equation (2) into equation (1):
From (2), we have \( y = x \). Substitute \( y \) in equation (1):
\[ 10 + x = 2 + 5x \]
Now, solve for \( x \):
\[ 10 + x - 5x = 2 \] \[ 10 - 4x = 2 \] \[ -4x = 2 - 10 \] \[ -4x = -8 \] \[ x = 2 \]
Now, using equation (2) to find \( y \):
\[ y = x = 2 \]
Now we can find the weight of each container. For toy cars:
Weight of toy cars' container: \[ 10 + x = 10 + 2 = 12 \text{ kg} \]
For toy trucks:
Weight of toy trucks' container: \[ 2 + 5y = 2 + 5 \cdot 2 = 2 + 10 = 12 \text{ kg} \]
Hence, both containers weigh the same.
Thus, the final answers are:
Each container weighs 12 kilograms and contains 2 toys.