Solution:
Let number of buttons in Shirt = x
And Number of buttons in Jackets = y
36 shirts and 42 jackets contains 842 buttons.
And collection of 6 shirts and 7 jackets contains 137 buttons.
Writing it in terms of equations
→ 36 x + 42 y = 842 -------(1)
→ 6 x + 7 y = 137-----(2) × 6
→ 36 x +42 y = 822 ----(3)
As equation (1) and (3) are such that there x and y coefficient are same , but the constant term on one side of equation are different. It means the two equation have no solution.
I.e →

So, the two equation have no solution.
It means we can't find number of buttons in jackets and shirts.