Madelyn was out at a restaurant for dinner when the bill came. Her dinner came to $30. After adding in a tip, before tax, she paid $38. 40. Find the percent tip.