If Brandon's, Tanya's and Sam's ages totalled 37 and Brandon is 6 years older than Tanya and Sam is 8 years younger than Tanya. What are their ages?