So I have a codes for both progressions, but I need to combine them together. I have to check if inputed values are both progressions or one of them or none.