Rename after 2 keyword

Hello :)

So if anyone can help me with this problem . I have like 2000 jpg that contains like 20-30 keyword . I want to rename evry jpg that i got with 2 random keyword ( tag) they got.

Exemple :

INPUT:

Name : abc123123
Tags: Sunny,Picture,Modern,Art,Back,Golden,Samurai,Oil,Pain,,Samurai,

OUTPUT:

Name : Golden Sunny


Please if anyone have an ideea or a script that i can use i will be gratefull :)
Try reading my answer to the previous post - it may help!