I understand this question:
https://stackoverflow.com/questions/39291214/how-to-print-all-combination-of-two-digit-sum-xy-num
Is not well received because it contains at least 2 unwelcome elements:do my work and beginner level. But now this question is closed as too broad, which I'm not quite understand the reason.
As in my view, the solution can be just a for loop with few lines of codes, and the logic is simple and straightforward that there are only few reasonable ways to complete the requirement (I think the only reasonable way is looping y=9-x), so I'm not quite understand why this question is too broad.