I have taken the liberty to modify your blocks to accomplish this.
I hope you don't mind :)
Here are the blocks:
The show procedure makes copies of the numbers_pictures and figures_pictures lists so pictures can be picked from the copied lists and then the picked items removed from the lists so they cannot be picked again.
It also makes sure that the Pictures for the figures on the right are randomly placed.
When the child touches one of the number ImageSprites on the left, the sprite's Touched event block is triggered.
That sprite's component block is saved so it's picture name can be used to compare with the figure name when it is touched to see if the numbers match.
The component block is also used to get the x,y location of the number sprite for drawing a line later if the numbers match.
When the child touches one of the figures ImageSprites on the right, it's Touched event block is triggered and the number part of it's Picture value is compared to the number part of the save ImageSprite's Picture value.
If they match, a line is drawn between the two ImageSprites.
---
sf