Keep tapping the interact button until Yui is out of the sand and begin to move again until you stuck again and repeat.