A professional guitarist charges $400 to perform at a restaurant. At the end of the night he collected his tips and left with a total earning of $620. Write an equation and solve for the amount he made in tips for the performance.