The number of shirts and pants buy should be7 and 3.
Given that,
Based on the above information, the calculation is as follows:
x + y = 10
15x + 40y = 225
Here we multiplied by 15 in equation 1
So,
15x + 15y = 150
15x + 40y = 225
-25y = -75
y = 3
Now x = 10- 3
= 7
Learn more: brainly.com/question/17429689