Welcome!
See code to get you started on an exercise below.
Jump to the Processing reference on the dist() function.