Log in again and enter the command from the beginning in a console window.

xrandr --output TMDS-1 --auto --left-of VGA

You should now have an extended desktop where the left side of the desktop is on the big 24" monitor and the right side on the old 17" monitor.
For xrandr you could also use following arguments for positioning: