Need help with an assignment from school

I still have no ideas on how to do the collision between the square and coin.