solve horizontal lines with 2 unknown numbers