Car X weighs 137 pounds more than Z. Car Y weighs 119 pounds more than car Z. The total weight of all three cars is 9772 pounds. How much does each car weigh?