The sum of two mystery numbers is 40. The bigger number is ten more than twice the smaller number. What are the two mystery numbers?