Lets say that the Habsburg monarchy goes completely extinct in 1740, either both Maire Theresa and Maire Anna dies in childhood, nobody signs the Pragmatic Sanction of 1713 or something that prevents the House of Habsburg-Lorraine from coming to power. Who inherits the Habsburg lands?