You don't say how the spades are played so I'll give you my line and my reasoning. It appears that hearts are either 5/5 or 4/6. It's unlikely that west led A from AJxxx or AJxx. If the 2 is a true card, it's more likely he has led from Axxx or Axxxx if 3rd and 5th leads. RHO did not open with a weak 2, suggesting 4/5 pattern in the majors, leaving 4 minor suit cards. Surely from KQJ West would have led a club rather than heart ace so RHO is marked with at least 1 club honor, more than likely the Q as West may have led club from QJxx(x). We now know 10 or 11 of East's and assume 9 or 10 of West's cards. If East has KJx of diamonds we cannot make, so rule that out. If East has 4531 pattern he is most likely to hold both K and J of diamonds so rule that out.
That leaves holdings where East has (??) or (?) diamonds. Can we cater to both holdings and protect against a stiff honor in East's hand? I think so.
So, with that thinking done at trick 1, I lead the A of spades from hand and when West shows out I lead the 8 of diamonds to dummy's Ace. Presumably, East will follow with K, J, 9, or a small diamond. I then return in trumps, overtaking the Q with the K and draw trumps. Now I lead the 10 of diamonds and run it. If this wins or if west plays the King I can claim. It will even win in situations where East has 3 Diamonds and West began with J9 doubleton or Kx, though that is unlikely.
Given than East needs to have short diamonds for me to make or West the J9 or Kx, this line only loses to Jx of diamonds in East's hand and wins whenever East holds stiff K, J, 9, or a small card or any doubleton other than Jx. By leading the 8 and then the 10 I also give myself the extra chance of West holding KJxx and East singleton 9. If West hops with the K on round two of diamonds, I have a tenace of his remaining Jx with Q7 in dummy and 5 left in my hand.
How did I do?