solve 'lines'