Suppose A,B,C,D and E are distinct positive integers such that A < B < C < D < E,their median is 10 and their mean is 15.Find the maximum possible value of D.

median=10:

A B 10 D E

mean=15:
A+B+10+D+E = 5*15 = 75
A+B+D+E = 65

max D means min A+B+E
1+2+D+E=65
D+E = 62
Since D<E, we can only have 30,32

1 2 10 30 32

gives maximum D=30