Help me with Canvas

when user clicks at a particular x and y how to get it’s x and y in canvas please help me

This might work:

thank you @codeswept !

@codeswept sorry but your method is not working