1000-X-4X=895
The solution is X=2 1.
Twenty-one cups were broken.
Analysis: If none of them are bad, the freight 1 0,000 yuan. Now that one is broken, if the freight is not given to the other, there will be a fine of 4 yuan. So one cup is missing, and five yuan is missing. So the above equations can be listed, and it is not difficult to solve them.