Use the arrow keys to move Yoshi around and get him to the rainbow door.
I had some help from RHY3756547 with the varibles and other blocks that I couldn't understand.