The sum of two numbers is 1178.

The first number is 270 less than three times the second number.

What are the numbers?

x = second number

3x + x-270 = 1178

4x = 1448

x = 362