It's pretty explanatory. You put in the number that you want to get and my algorithm will try to find two numbers that, when subtracted, give an output of the number that you put in. However, since this was created for a riddle, I could only use 1, 2, 3, 4, 5, and 6. In addition to that, I could only use each one of those numbers once. It's pretty useless except for it's intended purpose.
Thanks to my math teacher for inspiring me to solve this riddle with a brute force attack. Most of you would never need to use this. Since I spent like 20 minutes on this though, I wanted to share it with the world. It is only really useful for it's intended purpose but if you guys wanted me to, I could put more features in.