```
x + y = 1100
```
We also know that the first car gets an average of 25 miles per gallon, so the amount of gas it consumes can be calculated as:
```
gas1 = x / 25
```
Similarly, the amount of gas consumed by the second car can be calculated as:
```
gas2 = y / 15
```
The total amount of gas consumed by both cars is given as 60 gallons, so we can write:
```
gas1 + gas2 = 60
```
Substituting the expressions for gas1 and gas2, we get:
```
x / 25 + y / 15 = 60
```
Multiplying both sides by 75 (the least common multiple of 25 and 15), we get:
```
3x + 5y = 4500
```
Now we have a system of two linear equations:
```
x + y = 1100
3x + 5y = 4500
```
We can solve this system using elimination or substitution method. Let's use the elimination method:
```
(-3) * (x + y) = (-3) * 1100
3x + 5y = 4500
-3x - 3y = -3300
3x + 5y = 4500
```
Adding these two equations, we get:
```
2y = 1200
```
Dividing both sides by 2, we get:
```
y = 600
```
Now we can substitute this value of y back into the first equation:
```
x + y = 1100
x + 600 = 1100
```
Subtracting 600 from both sides, we get:
```
x = 500
```
Therefore, the first car traveled 500 miles and the second car traveled 600 miles.