Matchstick Rings

each pattern of square rings has been made with matchsticks which are all the same length.

If the length of one side of a square ring is "m" matchsticks, try to find a formula, in terms of m, for each of the following:
a) The outer perimeter, P.
b) The inner perimeter, p.
c) The number of squares, S.
d) The total number of matchsticks, M.

If the rings are rectangular of length L matchsticks and breadth B matchsticks, try to find formula or P, p, S and M

can't see the patterns here.

However, surely you can do some parts of this, and maybe your answers will shed some light on the diagrams.