added method for solving horizontal lines with 3 unknown