Number S is obtained by squaring the sum of digits of a two digit number D. If difference between Sand D is 27, then the two digit number D is
A. 24

B. 54

C. 34

D. 45