The sum of two numbers is 50.One number is 10 less than three times the other number. What are the two numbers.

25 and 25
45 and 5
15 and 36
40 and 10
20 and 30