The number of variables needed to find the perimeter of a square and a rectangle will be and respectively.