layout sketches and equations

I have seen several posts on these topics and downloaded files to try and sort out how to ues them but get completely lost, how do you create equations in a part that are linked to an assembly? (I can find the dimensions in each case but how are they setup?)

Is there a tutorial somewhere?

The basic things like this are never explained and taking a part apart doesn't seem to help.

Any help gratefully accepted, thanks.

SolidworksSketching