How do I solve the problem

16x+32y=p
number of sides in a square= 4
16x+32/4=4x+8
One side is 4x+8
This answer might be wrong, just check it with your working out or theory please. It could be right or wrong is what I am trying to say as I have not answered questions like these in quite a while.