a factory had 1080 shirts and pants altogether.after donating 60 pants to charity the number of shirts it had was three times the number of pants left.how many pants did the factory have at first/

my answer is 315 am i right,if not please tell me why and how.

Right.

To solve this problem, let's break it down step by step:

Let's say the number of pants the factory had originally is "x."

According to the given information:
- The number of shirts and pants altogether is 1080. So we have the equation: x + (x + 60) = 1080.
- After donating 60 pants to charity, the number of shirts the factory had was three times the number of pants left. So we have the equation: 3(x - 60) = x + 60.

Now let's solve these equations:

Equation 1: x + (x + 60) = 1080
Combining like terms: 2x + 60 = 1080
Subtracting 60 from both sides: 2x = 1020
Dividing both sides by 2: x = 510

Now let's substitute the value of x into Equation 2:

Equation 2: 3(x - 60) = x + 60
Substituting x = 510: 3(510 - 60) = 510 + 60
Simplifying inside the parentheses: 3(450) = 570
Multiplying: 1350 = 570

Since 1350 is not equal to 570, your answer of 315 is incorrect.

To find the correct answer, let's go back and find the number of pants the factory had originally:

Since x = 510, the factory had 510 pants at first.