Here is what I did:
Sprite has instance variable ID
Text Object is Container of Sprite and it has instance variable ID also.
And you can check the screenshot below:
In case you want to save it for other layouts, you can store them in the Array or Local Storage for longer saving.