The mean of 3 consecutive terms in an arithmetic sequence is 10, and the mean of their squares is 394. What is the largest of the 3 terms?