Mathematics

Rex is four times as old as Ted. If the sum of their ages is 30, how old is Ted? A: 5 B: 8 C: 10 D: 6

$t-Ted\\4t-Rex\\\\t+4t=30\\5t=30\ \ \ /:5\\t=6\\\\Answer:D$