Press the green flag TWICE and then you click a coin, then you press down on your mouse on the coin slot once it is a purple background. Then press space to make the coin go to the blue (2,856 tickets), and red (5,712)
I got this idea from the studio Fun Plaza Arcade. Click this link or copy it to see that studio: http://scratch.mit.edu/studios/545282/