Score matrix is:
The score of an optimal local alignment in this case is 9, and only one alignment gives this score:
YSD FEN
(i) ESV-A (ii) ESVA--- ADTL- ---ADTL
The score of an optimal global alignment in this case is 2, and only one alignment gives this score:
ADTL- -ESVA