One number added to three times another is 24. Five times the first number added to three times the other number is 36. Find the numbers.